Struct openraft::error::Unreachable
source · pub struct Unreachable { /* private fields */ }
Expand description
Error indicating a node is unreachable. Retries should be delayed.
This error suggests that immediate retries are not advisable when a node is not reachable.
Upon encountering this error, Openraft will invoke backoff()
to implement a delay before
attempting to resend any information.
This error is similar to NetworkError
but with a key distinction: Unreachable
advises a
backoff period, whereas with NetworkError
, Openraft may attempt an immediate retry.
Implementations§
Trait Implementations§
source§impl Clone for Unreachable
impl Clone for Unreachable
source§fn clone(&self) -> Unreachable
fn clone(&self) -> Unreachable
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 Unreachable
impl Debug for Unreachable
source§impl<'de> Deserialize<'de> for Unreachable
impl<'de> Deserialize<'de> for Unreachable
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 Unreachable
impl Display for Unreachable
source§impl Error for Unreachable
impl Error for Unreachable
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 Unreachable
impl From<AnyError> for Unreachable
source§impl<NID: NodeId, N: Node, E: Error> From<Unreachable> for RPCError<NID, N, E>
impl<NID: NodeId, N: Node, E: Error> From<Unreachable> for RPCError<NID, N, E>
source§fn from(source: Unreachable) -> Self
fn from(source: Unreachable) -> Self
Converts to this type from the input type.
source§impl<C: RaftTypeConfig, E: Error> From<Unreachable> for StreamingError<C, E>
impl<C: RaftTypeConfig, E: Error> From<Unreachable> for StreamingError<C, E>
source§fn from(source: Unreachable) -> Self
fn from(source: Unreachable) -> Self
Converts to this type from the input type.
source§impl PartialEq for Unreachable
impl PartialEq for Unreachable
source§fn eq(&self, other: &Unreachable) -> bool
fn eq(&self, other: &Unreachable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Unreachable
impl Serialize for Unreachable
impl Eq for Unreachable
impl StructuralPartialEq for Unreachable
Auto Trait Implementations§
impl Freeze for Unreachable
impl RefUnwindSafe for Unreachable
impl Send for Unreachable
impl Sync for Unreachable
impl Unpin for Unreachable
impl UnwindSafe for Unreachable
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