pub struct StateSocketProbe { /* private fields */ }Expand description
An ArmedProbe fed by a background reader of the router state socket.
Implementations§
Source§impl StateSocketProbe
impl StateSocketProbe
Sourcepub fn spawn(state_socket: PathBuf, vehicle_profile: bool) -> Arc<Self> ⓘ
pub fn spawn(state_socket: PathBuf, vehicle_profile: bool) -> Arc<Self> ⓘ
Start the reader task on the current tokio runtime and return the probe. A node whose profile carries no vehicle never counts as armed; the task is not started for it. The task reconnects every 2 s, with no cap, after a connect or read failure, and ends when the last probe handle drops.
Trait Implementations§
Source§impl ArmedProbe for StateSocketProbe
impl ArmedProbe for StateSocketProbe
Source§fn treated_as_armed(&self) -> bool
fn treated_as_armed(&self) -> bool
Whether a link-dropping action must be refused right now.
Auto Trait Implementations§
impl !Freeze for StateSocketProbe
impl RefUnwindSafe for StateSocketProbe
impl Send for StateSocketProbe
impl Sync for StateSocketProbe
impl Unpin for StateSocketProbe
impl UnsafeUnpin for StateSocketProbe
impl UnwindSafe for StateSocketProbe
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