pub struct HeartbeatResponse {
pub state: LeaseState,
pub expires_at_ms: i64,
pub end_cause: Option<EndCause>,
}Expand description
Response of POST /leases/{id}/heartbeat.
Fields§
§state: LeaseStateCurrent state, so a holder of a queued lease learns when it becomes active.
expires_at_ms: i64New expiry, in milliseconds since the Unix epoch.
end_cause: Option<EndCause>Why the lease ended, once it has; for example EndCause::Killed when the user
stopped its job.
Trait Implementations§
Source§impl Clone for HeartbeatResponse
impl Clone for HeartbeatResponse
impl Copy for HeartbeatResponse
Source§impl Debug for HeartbeatResponse
impl Debug for HeartbeatResponse
Source§impl<'de> Deserialize<'de> for HeartbeatResponse
impl<'de> Deserialize<'de> for HeartbeatResponse
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 HeartbeatResponse
Source§impl PartialEq for HeartbeatResponse
impl PartialEq for HeartbeatResponse
Source§impl Serialize for HeartbeatResponse
impl Serialize for HeartbeatResponse
impl StructuralPartialEq for HeartbeatResponse
Auto Trait Implementations§
impl Forget for HeartbeatResponse
impl Freeze for HeartbeatResponse
impl Move for HeartbeatResponse
impl RefUnwindSafe for HeartbeatResponse
impl Send for HeartbeatResponse
impl Sync for HeartbeatResponse
impl Unpin for HeartbeatResponse
impl UnsafeUnpin for HeartbeatResponse
impl UnwindSafe for HeartbeatResponse
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