pub struct SessionSnapshot(/* private fields */);Expand description
Immutable snapshot of session state.
Implementations§
Source§impl SessionSnapshot
impl SessionSnapshot
pub fn task_id(&self) -> Uuid
pub fn job_id(&self) -> Option<Uuid>
pub fn capability(&self) -> &str
pub fn meta(&self) -> &Value
pub fn inputs_cids(&self) -> &[String]
pub fn domain_id(&self) -> Option<Uuid>
pub fn domain_server_url(&self) -> Option<&Url>
pub fn access_token(&self) -> Option<&str>
pub fn access_token_expires_at(&self) -> Option<DateTime<Utc>>
pub fn lease_expires_at(&self) -> Option<DateTime<Utc>>
pub fn next_heartbeat_due(&self) -> Option<Instant>
pub fn status(&self) -> SessionStatus
pub fn cancel(&self) -> bool
Trait Implementations§
Source§impl Clone for SessionSnapshot
impl Clone for SessionSnapshot
Source§fn clone(&self) -> SessionSnapshot
fn clone(&self) -> SessionSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionSnapshot
impl RefUnwindSafe for SessionSnapshot
impl Send for SessionSnapshot
impl Sync for SessionSnapshot
impl Unpin for SessionSnapshot
impl UnwindSafe for SessionSnapshot
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