pub enum CompleteRoundError<CompleteErr, SendErr> {
CompleteRound(CompleteErr),
Send(SendErr),
Echo(EchoError),
}Available on crate feature
echo-broadcast only.Expand description
An error returned in round completion
Variants§
CompleteRound(CompleteErr)
Error occurred while handling received message(s)
Send(SendErr)
Error occurred while sending a message to another party
The only message we send during round completion is echo message
Echo(EchoError)
Echo broadcast sub-protocol error
Trait Implementations§
Source§impl<CompleteErr, SendErr> Display for CompleteRoundError<CompleteErr, SendErr>
impl<CompleteErr, SendErr> Display for CompleteRoundError<CompleteErr, SendErr>
Source§impl<CompleteErr, SendErr> Error for CompleteRoundError<CompleteErr, SendErr>
impl<CompleteErr, SendErr> Error for CompleteRoundError<CompleteErr, SendErr>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl<CompleteErr, SendErr> Freeze for CompleteRoundError<CompleteErr, SendErr>
impl<CompleteErr, SendErr> RefUnwindSafe for CompleteRoundError<CompleteErr, SendErr>where
CompleteErr: RefUnwindSafe,
SendErr: RefUnwindSafe,
impl<CompleteErr, SendErr> Send for CompleteRoundError<CompleteErr, SendErr>
impl<CompleteErr, SendErr> Sync for CompleteRoundError<CompleteErr, SendErr>
impl<CompleteErr, SendErr> Unpin for CompleteRoundError<CompleteErr, SendErr>
impl<CompleteErr, SendErr> UnwindSafe for CompleteRoundError<CompleteErr, SendErr>where
CompleteErr: UnwindSafe,
SendErr: UnwindSafe,
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