pub enum EndpointProbeError {
Show 15 variants
Random(Error),
LocalSocketName(Error),
Connect(Error),
ConfigureNonblocking(Error),
Timeout,
Io(Error),
UnsupportedFramingVersion {
got: u8,
expected: u8,
},
FrameTooLarge {
body_length: usize,
cap: usize,
},
EncodeFrame(EncodeError),
DecodeFrame(DecodeError),
UnexpectedFrame(&'static str),
MalformedPayload(&'static str),
DecodeDaemonProcess(DecodeError),
Identity(IdentityError),
IdentityMismatch {
field: &'static str,
},
}Expand description
Errors returned by the active endpoint-response probe.
Variants§
Random(Error)
The probe nonce could not be generated.
LocalSocketName(Error)
The endpoint path/name could not be converted to a local socket name.
Connect(Error)
Connecting to the endpoint failed.
ConfigureNonblocking(Error)
The stream could not be switched to nonblocking mode for deadline I/O.
Timeout
Probe I/O exceeded the configured deadline.
Io(Error)
Raw probe I/O failed.
UnsupportedFramingVersion
The peer used the wrong broker framing byte.
FrameTooLarge
The peer advertised a frame that exceeds the v1 frame cap.
Fields
EncodeFrame(EncodeError)
The outbound probe request frame could not be encoded.
DecodeFrame(DecodeError)
The response frame could not be decoded.
UnexpectedFrame(&'static str)
The response frame did not match the endpoint-probe contract.
MalformedPayload(&'static str)
The response payload did not match the endpoint-probe contract.
DecodeDaemonProcess(DecodeError)
The response daemon identity could not be decoded.
Identity(IdentityError)
The response daemon identity was malformed.
IdentityMismatch
The response daemon identity did not match the expected identity.
Trait Implementations§
Source§impl Debug for EndpointProbeError
impl Debug for EndpointProbeError
Source§impl Display for EndpointProbeError
impl Display for EndpointProbeError
Source§impl Error for EndpointProbeError
impl Error for EndpointProbeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<EndpointProbeError> for ProbeError
impl From<EndpointProbeError> for ProbeError
Source§fn from(source: EndpointProbeError) -> Self
fn from(source: EndpointProbeError) -> Self
Source§impl From<IdentityError> for EndpointProbeError
impl From<IdentityError> for EndpointProbeError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for EndpointProbeError
impl !UnwindSafe for EndpointProbeError
impl Freeze for EndpointProbeError
impl Send for EndpointProbeError
impl Sync for EndpointProbeError
impl Unpin for EndpointProbeError
impl UnsafeUnpin for EndpointProbeError
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more