pub struct HotplugSubscription { /* private fields */ }Expand description
Bounded, nonblocking producer subscription. Both receive methods return
a fresh Snapshot after overflow, atomically discarding old hints. Dropping a subscription releases its queue.
Implementations§
Source§impl HotplugSubscription
impl HotplugSubscription
pub fn try_recv(&self) -> Result<HotplugEvent, TryRecvError>
pub fn recv_timeout( &self, timeout: Duration, ) -> Result<HotplugEvent, RecvTimeoutError>
Auto Trait Implementations§
impl !RefUnwindSafe for HotplugSubscription
impl !UnwindSafe for HotplugSubscription
impl Forget for HotplugSubscription
impl Freeze for HotplugSubscription
impl Move for HotplugSubscription
impl Send for HotplugSubscription
impl Sync for HotplugSubscription
impl Unpin for HotplugSubscription
impl UnsafeUnpin for HotplugSubscription
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