pub enum ParticipantError {
ParticipantDisconnected,
ProtocolFailedUnrecoverable,
}
Expand description
Error type thrown by Participants
methods
Variants§
ParticipantDisconnected
Participant was closed by remote side
ProtocolFailedUnrecoverable
Underlying Protocol failed and wasn’t able to recover, expect some Data loss unfortunately, there is no method to get the exact messages that failed. This is also returned when local side tries to do something while remote site gracefully disconnects
Trait Implementations§
source§impl Clone for ParticipantError
impl Clone for ParticipantError
source§fn clone(&self) -> ParticipantError
fn clone(&self) -> ParticipantError
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 ParticipantError
impl Debug for ParticipantError
source§impl Display for ParticipantError
impl Display for ParticipantError
source§impl Error for ParticipantError
impl Error for ParticipantError
1.30.0 · 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 PartialEq for ParticipantError
impl PartialEq for ParticipantError
source§fn eq(&self, other: &ParticipantError) -> bool
fn eq(&self, other: &ParticipantError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParticipantError
impl StructuralPartialEq for ParticipantError
Auto Trait Implementations§
impl Freeze for ParticipantError
impl RefUnwindSafe for ParticipantError
impl Send for ParticipantError
impl Sync for ParticipantError
impl Unpin for ParticipantError
impl UnwindSafe for ParticipantError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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