pub struct WakeState {
pub attempts: u32,
pub next_at_ms: u64,
pub last_error: Option<String>,
pub handover_at_ms: Option<u64>,
pub failing_since_ms: Option<u64>,
}Expand description
A wake’s delivery so far (the wake file’s content; an empty file is a fresh wake).
Fields§
§attempts: u32Failed attempts.
next_at_ms: u64When the next attempt is due, epoch milliseconds.
last_error: Option<String>The last failure, as its door said it.
handover_at_ms: Option<u64>When a watcher began handing it to its session’s door (a relay, a runtime), cleared when that attempt settled. A wake that still names one was interrupted mid-handover (its watcher died): it is never handed over again.
failing_since_ms: Option<u64>When its first counted failure happened (epoch ms): the wake’s bound runs from here. A refusal that says the receiving machine is offline is not counted and does not start it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WakeState
impl<'de> Deserialize<'de> for WakeState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WakeState
impl StructuralPartialEq for WakeState
Auto Trait Implementations§
impl Freeze for WakeState
impl RefUnwindSafe for WakeState
impl Send for WakeState
impl Sync for WakeState
impl Unpin for WakeState
impl UnsafeUnpin for WakeState
impl UnwindSafe for WakeState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.