pub struct ReceiverRegistration<T: Send + 'static>(/* private fields */);
Expand description
A registration of a PacketReceiver
.
When dropped, it will automatically deregister the PacketReceiver
. Unlike
RawReceiverRegistration
, this involves a heap allocation.
Implementations§
Source§impl<T: Send + 'static> ReceiverRegistration<T>
impl<T: Send + 'static> ReceiverRegistration<T>
Trait Implementations§
Source§impl<T: Send + 'static> Deref for ReceiverRegistration<T>
impl<T: Send + 'static> Deref for ReceiverRegistration<T>
Auto Trait Implementations§
impl<T> Freeze for ReceiverRegistration<T>
impl<T> !RefUnwindSafe for ReceiverRegistration<T>
impl<T> Send for ReceiverRegistration<T>
impl<T> Sync for ReceiverRegistration<T>where
T: Sync,
impl<T> Unpin for ReceiverRegistration<T>
impl<T> !UnwindSafe for ReceiverRegistration<T>
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