Struct async_injector::Stream
source · [−]pub struct Stream<T> { /* private fields */ }
Expand description
A stream of updates to a value in the Injector.
This is created using Injector::stream or Injector::stream_key and can be used to make sure that an asynchronous process has access to the most up-to-date value from the injector.
Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Stream<T>
impl<T> Send for Stream<T> where
T: Send,
impl<T> Sync for Stream<T> where
T: Sync,
impl<T> Unpin for Stream<T> where
T: Unpin,
impl<T> !UnwindSafe for Stream<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more