pub struct NetworkStatusContext { /* private fields */ }Expand description
A read-only handle to the network facts owned by one OpenNet engine.
Cloning or reading it never starts monitoring or extends the engine lifetime.
A context remains tied to its original engine after that engine is dropped.
Implementations§
Source§impl NetworkStatusContext
impl NetworkStatusContext
Sourcepub fn snapshot(&self) -> Result<NetworkSnapshot, NetError>
pub fn snapshot(&self) -> Result<NetworkSnapshot, NetError>
Read the cached observation without starting or retrying monitoring.
Trait Implementations§
Source§impl Clone for NetworkStatusContext
impl Clone for NetworkStatusContext
Auto Trait Implementations§
impl !RefUnwindSafe for NetworkStatusContext
impl !UnwindSafe for NetworkStatusContext
impl Freeze for NetworkStatusContext
impl Send for NetworkStatusContext
impl Sync for NetworkStatusContext
impl Unpin for NetworkStatusContext
impl UnsafeUnpin for NetworkStatusContext
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