pub struct Deadline {
pub kind: TimestampKind,
pub nanos_since_epoch: i64,
}Expand description
Absolute deadline for a Query resolution or Command dispatch.
Carried in Context. Resolvers must check the deadline before
returning a result and return Error with code
ErrorCode::Timeout if exceeded.
Fields§
§kind: TimestampKindWhether this is monotonic or wall-clock.
nanos_since_epoch: i64Absolute nanoseconds since epoch (or process start) at which the deadline expires.
Implementations§
Trait Implementations§
impl Copy for Deadline
Source§impl<'de> Deserialize<'de> for Deadline
impl<'de> Deserialize<'de> for Deadline
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 Deadline
impl StructuralPartialEq for Deadline
Auto Trait Implementations§
impl Freeze for Deadline
impl RefUnwindSafe for Deadline
impl Send for Deadline
impl Sync for Deadline
impl Unpin for Deadline
impl UnsafeUnpin for Deadline
impl UnwindSafe for Deadline
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