Skip to content

Commit

Permalink
feat: delete recv
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Nov 14, 2023
1 parent b1fdc11 commit d0e772f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/device/net/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ impl<H: Hal, T: Transport, const QUEUE_SIZE: usize> VirtIONet<H, T, QUEUE_SIZE>
self.inner.can_send()
}

/// Whether can receive packet.
pub fn can_recv(&self) -> bool {
self.inner.can_recv()
}

/// Receives a [`RxBuffer`] from network. If currently no data, returns an
/// error with type [`Error::NotReady`].
///
Expand Down

0 comments on commit d0e772f

Please sign in to comment.