pub struct WriterLease {Show 14 fields
pub lease_id: String,
pub thread: String,
pub actor_session_id: Option<String>,
pub task_assignment_id: Option<String>,
pub anchor_state: Option<String>,
pub anchor_root: Option<String>,
pub path: Option<PathBuf>,
pub token_hash: String,
pub pid: Option<u32>,
pub boot_id: Option<String>,
pub heartbeat_at: DateTime<Utc>,
pub started_at: DateTime<Utc>,
pub status: WriterLeaseStatus,
pub completed_at: Option<DateTime<Utc>>,
}Fields§
§lease_id: String§thread: String§actor_session_id: Option<String>§task_assignment_id: Option<String>§anchor_state: Option<String>§anchor_root: Option<String>§path: Option<PathBuf>§token_hash: String§pid: Option<u32>§boot_id: Option<String>§heartbeat_at: DateTime<Utc>§started_at: DateTime<Utc>§status: WriterLeaseStatus§completed_at: Option<DateTime<Utc>>Implementations§
Source§impl WriterLease
impl WriterLease
pub fn lease_expires_at(&self) -> DateTime<Utc>
pub fn liveness_at(&self, now: DateTime<Utc>) -> Liveness
Trait Implementations§
Source§impl Clone for WriterLease
impl Clone for WriterLease
Source§fn clone(&self) -> WriterLease
fn clone(&self) -> WriterLease
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WriterLease
impl Debug for WriterLease
Source§impl<'de> Deserialize<'de> for WriterLease
impl<'de> Deserialize<'de> for WriterLease
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
Auto Trait Implementations§
impl Freeze for WriterLease
impl RefUnwindSafe for WriterLease
impl Send for WriterLease
impl Sync for WriterLease
impl Unpin for WriterLease
impl UnsafeUnpin for WriterLease
impl UnwindSafe for WriterLease
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