pub struct NetworkView(/* private fields */);Expand description
Hears what the store’s watch knows of the network (§6.7).
Implementations§
Source§impl NetworkView
impl NetworkView
Sourcepub fn current(&self) -> NetworkState
pub fn current(&self) -> NetworkState
What the watch knows now.
Sourcepub async fn changed(&mut self)
pub async fn changed(&mut self)
Resolves once the state changes after the one last read through this view; never once the watch is gone.
Sourcepub fn read(&mut self) -> NetworkState
pub fn read(&mut self) -> NetworkState
The state, marking it read: changed then waits for a later one.
Trait Implementations§
Source§impl Clone for NetworkView
impl Clone for NetworkView
Source§fn clone(&self) -> NetworkView
fn clone(&self) -> NetworkView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NetworkView
impl RefUnwindSafe for NetworkView
impl Send for NetworkView
impl Sync for NetworkView
impl Unpin for NetworkView
impl UnsafeUnpin for NetworkView
impl UnwindSafe for NetworkView
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