pub struct EndedLease {
pub lease_id: LeaseId,
pub session: SessionKey,
pub command: String,
pub cause: EndCause,
pub reason: String,
pub granted_at_ms: Option<i64>,
pub ended_at_ms: i64,
}Expand description
A lease that ended a moment ago: released by its holder, ended by allotd, killed or removed.
Fields§
§lease_id: LeaseIdThe lease.
session: SessionKeySession that held it.
command: StringThe lease’s label, usually the command.
cause: EndCauseHow it ended.
reason: Stringallotd’s reason for the end, for example “no command running and the session idle for 180s”; empty when none was recorded.
granted_at_ms: Option<i64>When it was granted, or None for a request that never started.
ended_at_ms: i64When it ended, in milliseconds since the Unix epoch.
Trait Implementations§
Source§impl Clone for EndedLease
impl Clone for EndedLease
Source§impl Debug for EndedLease
impl Debug for EndedLease
Source§impl<'de> Deserialize<'de> for EndedLease
impl<'de> Deserialize<'de> for EndedLease
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 EndedLease
Source§impl PartialEq for EndedLease
impl PartialEq for EndedLease
Source§impl Serialize for EndedLease
impl Serialize for EndedLease
impl StructuralPartialEq for EndedLease
Auto Trait Implementations§
impl Forget for EndedLease
impl Freeze for EndedLease
impl Move for EndedLease
impl RefUnwindSafe for EndedLease
impl Send for EndedLease
impl Sync for EndedLease
impl Unpin for EndedLease
impl UnsafeUnpin for EndedLease
impl UnwindSafe for EndedLease
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