Enum reactor::Error

source ·
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> Debug for Error<L, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<L: Resource, T: Resource> Display for Error<L, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<L: Resource, T: Resource> Error for Error<L, T>

1.30.0 · source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl<L: Resource, T: Resource> From<Error<L, T>> for String

source§

fn from(err: Error<L, T>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<L, T> !RefUnwindSafe for Error<L, T>

§

impl<L, T> Send for Error<L, T>

§

impl<L, T> Sync for Error<L, T>where L: Sync, T: Sync, <L as Resource>::Id: Sync, <T as Resource>::Id: Sync,

§

impl<L, T> Unpin for Error<L, T>where L: Unpin, T: Unpin, <L as Resource>::Id: Unpin, <T as Resource>::Id: Unpin,

§

impl<L, T> !UnwindSafe for Error<L, T>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<E> Provider for Ewhere E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.