pub enum Error<L: Resource, T: Resource> {
ListenerUnknown(L::Id),
TransportUnknown(T::Id),
WriteFailure(T::Id, Error),
WriteLogicError(T::Id, Vec<u8>),
ListenerDisconnect(L::Id, L, i16),
TransportDisconnect(T::Id, T, i16),
ListenerPollError(L::Id, i16),
TransportPollError(T::Id, i16),
Poll(Error),
}
Expand description
Reactor errors
Variants§
ListenerUnknown(L::Id)
unknown listener {0}
TransportUnknown(T::Id)
unknown transport {0}
WriteFailure(T::Id, Error)
unable to write to transport {0}. Details: {1:?}
WriteLogicError(T::Id, Vec<u8>)
writing to transport {0} before it is ready (business logic bug)
ListenerDisconnect(L::Id, L, i16)
transport {0} got disconnected during poll operation.
TransportDisconnect(T::Id, T, i16)
transport {0} got disconnected during poll operation.
ListenerPollError(L::Id, i16)
poll on listener {0} has returned error.
TransportPollError(T::Id, i16)
poll on transport {0} has returned error.
Poll(Error)
polling multiple reactor has failed. Details: {0:?}
Trait Implementations§
source§impl<L: Resource, T: Resource> Error for Error<L, T>
impl<L: Resource, T: Resource> Error for Error<L, T>
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()