pub enum BroadcastError {
Socket(Vec<SocketError>),
Serialize(ParserError),
Adapter(AdapterError),
}
Expand description
Error type for broadcast operations.
Variants§
Socket(Vec<SocketError>)
An error occurred while sending packets.
Serialize(ParserError)
An error occurred while serializing the packet.
Adapter(AdapterError)
An error occured while broadcasting to other nodes.
Trait Implementations§
Source§impl Debug for BroadcastError
impl Debug for BroadcastError
Source§impl Display for BroadcastError
impl Display for BroadcastError
Source§impl Error for BroadcastError
impl Error for BroadcastError
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()
Source§impl From<AdapterError> for BroadcastError
impl From<AdapterError> for BroadcastError
Source§fn from(source: AdapterError) -> Self
fn from(source: AdapterError) -> Self
Converts to this type from the input type.
Source§impl From<ParserError> for BroadcastError
impl From<ParserError> for BroadcastError
Source§fn from(source: ParserError) -> Self
fn from(source: ParserError) -> Self
Converts to this type from the input type.
Source§impl From<Vec<SocketError>> for BroadcastError
impl From<Vec<SocketError>> for BroadcastError
Source§fn from(value: Vec<SocketError>) -> Self
fn from(value: Vec<SocketError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BroadcastError
impl !RefUnwindSafe for BroadcastError
impl Send for BroadcastError
impl !Sync for BroadcastError
impl Unpin for BroadcastError
impl !UnwindSafe for BroadcastError
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