Struct reachability_core::Monitor
source · pub struct Monitor { /* private fields */ }
Expand description
Monitor
monitors the reachability state.
Implementations§
source§impl Monitor
impl Monitor
pub fn state(&self) -> &StateInfo
sourcepub fn report_state(&self)
pub fn report_state(&self)
Reports all information.
sourcepub fn set_inspector(&mut self, inspector: &'static Inspector)
pub fn set_inspector(&mut self, inspector: &'static Inspector)
Sets the inspector.
pub fn set_telemetry_sender(&mut self, telemetry_sender: TelemetrySender)
sourcepub async fn compute_state(&mut self, __arg1: InterfaceView<'_>)
pub async fn compute_state(&mut self, __arg1: InterfaceView<'_>)
Compute the reachability state of an interface.
The interface may have been recently-discovered, or the properties of a known interface may have changed.
sourcepub fn handle_interface_removed(&mut self, _: Properties)
pub fn handle_interface_removed(&mut self, _: Properties)
Handle an interface removed event.
Auto Trait Implementations§
impl !RefUnwindSafe for Monitor
impl Send for Monitor
impl Sync for Monitor
impl Unpin for Monitor
impl !UnwindSafe for Monitor
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.