pub struct Receiver { /* private fields */ }Expand description
Implementations§
Source§impl Receiver
impl Receiver
Sourcepub fn try_recv(&mut self) -> Result<CopyEvent<'_>, ChannelError>
pub fn try_recv(&mut self) -> Result<CopyEvent<'_>, ChannelError>
Attempts to receive a CopyEvent without blocking.
§Errors
Returns ChannelError::Empty if there is not a
aya::maps::ring_buf::RingBufItem available.
Sourcepub fn recv(&mut self) -> Result<CopyEvent<'_>, ChannelError>
pub fn recv(&mut self) -> Result<CopyEvent<'_>, ChannelError>
Blocks until a CopyEvent is available
§Errors
Returns ChannelError::Disconnected if the connection is dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Receiver
impl RefUnwindSafe for Receiver
impl Send for Receiver
impl Sync for Receiver
impl Unpin for Receiver
impl UnsafeUnpin for Receiver
impl UnwindSafe for Receiver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more