pub enum Error<T, D>{
Memberlist(Error<T, SerfDelegate<T, D>>),
Serf(SerfError),
Relay(RelayError<T, D>),
Multiple(Arc<[Self]>),
}
Expand description
Error type for the serf crate.
Variants§
Memberlist(Error<T, SerfDelegate<T, D>>)
Returned when the underlyhing memberlist error
Serf(SerfError)
Returned when the serf error
Relay(RelayError<T, D>)
Returned when the relay error
Multiple(Arc<[Self]>)
Multiple errors
Implementations§
Source§impl<T, D> Error<T, D>
impl<T, D> Error<T, D>
Sourcepub const fn query_response_too_large(limit: usize, got: usize) -> Self
pub const fn query_response_too_large(limit: usize, got: usize) -> Self
Create a query response too large error
Sourcepub const fn query_timeout() -> Self
pub const fn query_timeout() -> Self
Create a query timeout error
Sourcepub const fn query_already_responsed() -> Self
pub const fn query_already_responsed() -> Self
Create a query already response error
Sourcepub const fn query_response_delivery_failed() -> Self
pub const fn query_response_delivery_failed() -> Self
Create a query response delivery failed error
Sourcepub const fn relayed_response_too_large(size: usize) -> Self
pub const fn relayed_response_too_large(size: usize) -> Self
Create a relayed response too large error
Sourcepub const fn relay(err: RelayError<T, D>) -> Self
pub const fn relay(err: RelayError<T, D>) -> Self
Create a relay error
Sourcepub const fn fail_truncate_response() -> Self
pub const fn fail_truncate_response() -> Self
Create a fail truncate response error
Create a tags too large error
Sourcepub const fn query_too_large(size: usize) -> Self
pub const fn query_too_large(size: usize) -> Self
Create a query too large error
Sourcepub const fn user_event_limit_too_large(size: usize) -> Self
pub const fn user_event_limit_too_large(size: usize) -> Self
Create a user event limit too large error
Sourcepub const fn user_event_too_large(size: usize) -> Self
pub const fn user_event_too_large(size: usize) -> Self
Create a user event limit too large error
Sourcepub const fn raw_user_event_too_large(size: usize) -> Self
pub const fn raw_user_event_too_large(size: usize) -> Self
Create a raw user event too large error
Sourcepub const fn broadcast_channel_closed() -> Self
pub const fn broadcast_channel_closed() -> Self
Create a broadcast channel closed error
Sourcepub const fn removal_broadcast_timeout() -> Self
pub const fn removal_broadcast_timeout() -> Self
Create a removal broadcast timeout error
Sourcepub const fn snapshot(err: SnapshotError) -> Self
pub const fn snapshot(err: SnapshotError) -> Self
Create a snapshot error
Sourcepub const fn bad_leave_status(status: SerfState) -> Self
pub const fn bad_leave_status(status: SerfState) -> Self
Create a bad leave status error
Sourcepub const fn bad_join_status(status: SerfState) -> Self
pub const fn bad_join_status(status: SerfState) -> Self
Create a bad join status error
Sourcepub const fn coordinates_disabled() -> Self
pub const fn coordinates_disabled() -> Self
Create a coordinates disabled error
Trait Implementations§
Source§impl<T, D> Display for Error<T, D>where
D: Delegate<Id = T::Id, Address = T::ResolvedAddress>,
T: Transport,
Error<T, SerfDelegate<T, D>>: Display,
RelayError<T, D>: Display,
impl<T, D> Display for Error<T, D>where
D: Delegate<Id = T::Id, Address = T::ResolvedAddress>,
T: Transport,
Error<T, SerfDelegate<T, D>>: Display,
RelayError<T, D>: Display,
Source§impl<T, D> Error for Error<T, D>where
D: Delegate<Id = T::Id, Address = T::ResolvedAddress>,
T: Transport,
Error<T, SerfDelegate<T, D>>: Error,
RelayError<T, D>: Error,
Self: Debug + Display,
impl<T, D> Error for Error<T, D>where
D: Delegate<Id = T::Id, Address = T::ResolvedAddress>,
T: Transport,
Error<T, SerfDelegate<T, D>>: Error,
RelayError<T, D>: Error,
Self: Debug + Display,
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
Source§impl<T, D> From<DecodeError> for Error<T, D>
impl<T, D> From<DecodeError> for Error<T, D>
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Source§impl<T, D> From<EncodeError> for Error<T, D>
impl<T, D> From<EncodeError> for Error<T, D>
Source§fn from(e: EncodeError) -> Self
fn from(e: EncodeError) -> Self
Source§impl<T, D> From<RelayError<T, D>> for Error<T, D>
impl<T, D> From<RelayError<T, D>> for Error<T, D>
Source§fn from(source: RelayError<T, D>) -> Self
fn from(source: RelayError<T, D>) -> Self
Source§impl<T, D> From<SnapshotError> for Error<T, D>
impl<T, D> From<SnapshotError> for Error<T, D>
Source§fn from(value: SnapshotError) -> Self
fn from(value: SnapshotError) -> Self
Auto Trait Implementations§
impl<T, D> Freeze for Error<T, D>
impl<T, D> !RefUnwindSafe for Error<T, D>
impl<T, D> Send for Error<T, D>
impl<T, D> Sync for Error<T, D>
impl<T, D> Unpin for Error<T, D>where
<T as Transport>::Error: Unpin,
<T as Transport>::ResolvedAddress: Unpin,
<D as MergeDelegate>::Error: Unpin,
impl<T, D> !UnwindSafe for Error<T, D>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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