pub struct ProbeInterval(/* private fields */);Available on crate feature
transport-http only.Expand description
Non-zero delay between liveness probes on a GET stream.
§Examples
use std::time::Duration;
use mcpls_core::ProbeInterval;
assert!(ProbeInterval::new(Duration::ZERO).is_none());
let interval = ProbeInterval::new(Duration::from_mins(1)).unwrap();
assert_eq!(interval.get(), Duration::from_mins(1));Implementations§
Trait Implementations§
Source§impl Clone for ProbeInterval
impl Clone for ProbeInterval
impl Copy for ProbeInterval
Source§impl Debug for ProbeInterval
impl Debug for ProbeInterval
impl Eq for ProbeInterval
Source§impl PartialEq for ProbeInterval
impl PartialEq for ProbeInterval
impl StructuralPartialEq for ProbeInterval
Auto Trait Implementations§
impl Freeze for ProbeInterval
impl RefUnwindSafe for ProbeInterval
impl Send for ProbeInterval
impl Sync for ProbeInterval
impl Unpin for ProbeInterval
impl UnsafeUnpin for ProbeInterval
impl UnwindSafe for ProbeInterval
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.