SpinError

Enum SpinError 

Source
pub enum SpinError<S, E>
where S: Read<u8> + Write<u8>,
{ ShellError(ShellError<S>), EnvironmentError(E), }

Variants§

§

ShellError(ShellError<S>)

§

EnvironmentError(E)

Trait Implementations§

Source§

impl<S, E> From<Error> for SpinError<S, E>
where S: Read<u8> + Write<u8>,

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.
Source§

impl<S, E> From<ShellError<S>> for SpinError<S, E>
where S: Read<u8> + Write<u8>,

Source§

fn from(err: ShellError<S>) -> Self

Converts to this type from the input type.
Source§

impl<S, E> From<Utf8Error> for SpinError<S, E>
where S: Read<u8> + Write<u8>,

Source§

fn from(err: Utf8Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<S, E> Freeze for SpinError<S, E>
where E: Freeze, <S as Read<u8>>::Error: Freeze, <S as Write<u8>>::Error: Freeze,

§

impl<S, E> RefUnwindSafe for SpinError<S, E>

§

impl<S, E> Send for SpinError<S, E>
where E: Send, <S as Read<u8>>::Error: Send, <S as Write<u8>>::Error: Send,

§

impl<S, E> Sync for SpinError<S, E>
where E: Sync, <S as Read<u8>>::Error: Sync, <S as Write<u8>>::Error: Sync,

§

impl<S, E> Unpin for SpinError<S, E>
where E: Unpin, <S as Read<u8>>::Error: Unpin, <S as Write<u8>>::Error: Unpin,

§

impl<S, E> UnwindSafe for SpinError<S, E>
where E: UnwindSafe, <S as Read<u8>>::Error: UnwindSafe, <S as Write<u8>>::Error: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.