Skip to main content

HotplugSubscription

Struct HotplugSubscription 

Source
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§

Auto Trait Implementations§

§

impl !RefUnwindSafe for HotplugSubscription

§

impl !UnwindSafe for HotplugSubscription

§

impl Forget for HotplugSubscription

§

impl Freeze for HotplugSubscription
where *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
where *mut Counter<Channel<HotplugEvent>>: Unpin, *mut Counter<Channel<HotplugEvent>>: Unpin, *mut Counter<Channel<HotplugEvent>>: Unpin, Arc<Channel>: Unpin, Arc<Channel>: Unpin, *const u8 is !null: Unpin, Arc<Atomic<bool>>: Unpin, Arc<Mutex<RawMutex, State>>: Unpin,

§

impl UnsafeUnpin for HotplugSubscription
where *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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.