#[non_exhaustive]
pub enum FailureInfo {
NumFailures(CInt),
ReasonMap(HashMap<SocketAddr, CIntShort>),
}
Expand description
Protocol-dependent failure information. V5 contains a map of endpoint->code entries, while previous versions contain only error count.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NumFailures(CInt)
Represents the number of nodes that experience a failure while executing the request.
ReasonMap(HashMap<SocketAddr, CIntShort>)
Error code map for affected nodes.
Trait Implementations§
source§impl Clone for FailureInfo
impl Clone for FailureInfo
source§fn clone(&self) -> FailureInfo
fn clone(&self) -> FailureInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FailureInfo
impl Debug for FailureInfo
source§impl FromCursor for FailureInfo
impl FromCursor for FailureInfo
source§impl PartialEq<FailureInfo> for FailureInfo
impl PartialEq<FailureInfo> for FailureInfo
source§fn eq(&self, other: &FailureInfo) -> bool
fn eq(&self, other: &FailureInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.