pub enum Timeout {
Infinite,
AfterNs(NonZeroU64),
}Expand description
A relative timeout measured from backend admission. Zero on the wire means infinite.
Variants§
Infinite
AfterNs(NonZeroU64)
Implementations§
Source§impl Timeout
impl Timeout
pub const fn from_wire_ns(value: u64) -> Self
pub const fn to_wire_ns(self) -> u64
Trait Implementations§
impl Copy for Timeout
impl Eq for Timeout
impl StructuralPartialEq for Timeout
Auto Trait Implementations§
impl Freeze for Timeout
impl RefUnwindSafe for Timeout
impl Send for Timeout
impl Sync for Timeout
impl Unpin for Timeout
impl UnsafeUnpin for Timeout
impl UnwindSafe for Timeout
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