pub enum DelayAnswer {
Measured {
delay_ms: u32,
},
TimedOut,
Refused {
status: u16,
reason: Option<String>,
},
NotProvided,
Malformed,
}Expand description
The typed answer of the sing-box delay endpoint.
Variants§
Measured
The engine measured a round-trip delay through the outbound.
TimedOut
The engine’s own delay test exceeded the deadline it was given.
Refused
The engine refused the request.
Fields
NotProvided
The engine’s answer is not one of the answers its delay endpoint produces, so the driver claims no measurement, timeout or refusal.
Malformed
The engine answered with a measurement the driver could not read.
Trait Implementations§
Source§impl Clone for DelayAnswer
impl Clone for DelayAnswer
Source§impl Debug for DelayAnswer
impl Debug for DelayAnswer
impl Eq for DelayAnswer
Source§impl PartialEq for DelayAnswer
impl PartialEq for DelayAnswer
impl StructuralPartialEq for DelayAnswer
Auto Trait Implementations§
impl Forget for DelayAnswer
impl Freeze for DelayAnswer
impl Move for DelayAnswer
impl RefUnwindSafe for DelayAnswer
impl Send for DelayAnswer
impl Sync for DelayAnswer
impl Unpin for DelayAnswer
impl UnsafeUnpin for DelayAnswer
impl UnwindSafe for DelayAnswer
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.