Struct openraft::error::NetworkError
source · pub struct NetworkError { /* private fields */ }
Expand description
Error that indicates a temporary network error and when it is returned, Openraft will retry immediately.
Unlike Unreachable
, which indicates a error that should backoff before retrying.
Implementations§
Trait Implementations§
source§impl Clone for NetworkError
impl Clone for NetworkError
source§fn clone(&self) -> NetworkError
fn clone(&self) -> NetworkError
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 NetworkError
impl Debug for NetworkError
source§impl<'de> Deserialize<'de> for NetworkError
impl<'de> Deserialize<'de> for NetworkError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for NetworkError
impl Display for NetworkError
source§impl Error for NetworkError
impl Error for NetworkError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<AnyError> for NetworkError
impl From<AnyError> for NetworkError
source§impl<NID: NodeId, N: Node, E: Error> From<NetworkError> for RPCError<NID, N, E>
impl<NID: NodeId, N: Node, E: Error> From<NetworkError> for RPCError<NID, N, E>
source§fn from(source: NetworkError) -> Self
fn from(source: NetworkError) -> Self
Converts to this type from the input type.
source§impl<C: RaftTypeConfig, E: Error> From<NetworkError> for StreamingError<C, E>
impl<C: RaftTypeConfig, E: Error> From<NetworkError> for StreamingError<C, E>
source§fn from(source: NetworkError) -> Self
fn from(source: NetworkError) -> Self
Converts to this type from the input type.
source§impl PartialEq for NetworkError
impl PartialEq for NetworkError
source§fn eq(&self, other: &NetworkError) -> bool
fn eq(&self, other: &NetworkError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NetworkError
impl Serialize for NetworkError
impl Eq for NetworkError
impl StructuralPartialEq for NetworkError
Auto Trait Implementations§
impl Freeze for NetworkError
impl RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl UnwindSafe for NetworkError
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