pub enum ServerError<Tx, Rx>{
TxFatal(Tx::Error),
RxFatal(Rx::Error),
}Expand description
A type representing the different errors Server::run() may return
Variants§
TxFatal(Tx::Error)
A fatal error occurred with the WireTx::send() implementation
RxFatal(Rx::Error)
A fatal error occurred with the WireRx::receive() implementation
Trait Implementations§
Source§impl<Tx, Rx> Debug for ServerError<Tx, Rx>
impl<Tx, Rx> Debug for ServerError<Tx, Rx>
Source§impl<Tx, Rx> Display for ServerError<Tx, Rx>
impl<Tx, Rx> Display for ServerError<Tx, Rx>
Source§impl<Tx, Rx> Error for ServerError<Tx, Rx>
impl<Tx, Rx> Error for ServerError<Tx, Rx>
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<Tx, Rx> Freeze for ServerError<Tx, Rx>
impl<Tx, Rx> RefUnwindSafe for ServerError<Tx, Rx>
impl<Tx, Rx> Send for ServerError<Tx, Rx>
impl<Tx, Rx> Sync for ServerError<Tx, Rx>
impl<Tx, Rx> Unpin for ServerError<Tx, Rx>
impl<Tx, Rx> UnwindSafe for ServerError<Tx, Rx>
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