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 HotplugSubscriptionwhere
*mut Counter<Channel<HotplugEvent>>: Freeze,
*mut Counter<Channel<HotplugEvent>>: Freeze,
*mut Counter<Channel<HotplugEvent>>: Freeze,
*const ArcInner<Channel> is !null: Freeze,
PhantomData<ArcInner<Channel>>: Freeze,
*const ArcInner<Channel> is !null: Freeze,
PhantomData<ArcInner<Channel>>: Freeze,
PhantomData<HotplugEvent>: Freeze,
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
*const ArcInner<Mutex<RawMutex, State>> is !null: Freeze,
PhantomData<ArcInner<Mutex<RawMutex, State>>>: Freeze,
impl Move for HotplugSubscription
impl Send for HotplugSubscription
impl Sync for HotplugSubscription
impl Unpin for HotplugSubscription
impl UnsafeUnpin for HotplugSubscriptionwhere
*mut Counter<Channel<HotplugEvent>>: UnsafeUnpin,
*mut Counter<Channel<HotplugEvent>>: UnsafeUnpin,
*mut Counter<Channel<HotplugEvent>>: UnsafeUnpin,
*const ArcInner<Channel> is !null: UnsafeUnpin,
PhantomData<ArcInner<Channel>>: UnsafeUnpin,
*const ArcInner<Channel> is !null: UnsafeUnpin,
PhantomData<ArcInner<Channel>>: UnsafeUnpin,
PhantomData<HotplugEvent>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const ArcInner<Mutex<RawMutex, State>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<RawMutex, State>>>: UnsafeUnpin,
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