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 StructuralEq for ParticipantError
impl StructuralPartialEq for ParticipantError
Auto Trait Implementations§
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
§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