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> Freeze for Stream<T>
impl<T> RefUnwindSafe for Stream<T>where
T: RefUnwindSafe,
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>where
T: UnwindSafe,
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