pub struct UnattachedSource<H> { /* private fields */ }Expand description
A wrapper to indicate that a source hasn’t been attached to a context yet.
Sources does nothing unless they are attached to a context.
Use Context::attach() to do it.
Auto Trait Implementations§
impl<H> Freeze for UnattachedSource<H>where
H: Freeze,
impl<H> !RefUnwindSafe for UnattachedSource<H>
impl<H> Send for UnattachedSource<H>where
H: Send,
impl<H> Sync for UnattachedSource<H>where
H: Sync,
impl<H> Unpin for UnattachedSource<H>where
H: Unpin,
impl<H> UnsafeUnpin for UnattachedSource<H>where
H: UnsafeUnpin,
impl<H> !UnwindSafe for UnattachedSource<H>
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