ShellError

Enum ShellError 

Source
pub enum ShellError<S>
where S: Read<u8> + Write<u8>,
{ ReadError(<S as Read<u8>>::Error), WriteError(<S as Write<u8>>::Error), FormatError(Error), BadInputError(Utf8Error), WouldBlock, HistoryError, }

Variants§

§

ReadError(<S as Read<u8>>::Error)

§

WriteError(<S as Write<u8>>::Error)

§

FormatError(Error)

§

BadInputError(Utf8Error)

§

WouldBlock

§

HistoryError

Trait Implementations§

Source§

impl<S> From<Error> for ShellError<S>
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> From<Utf8Error> for ShellError<S>
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> Freeze for ShellError<S>
where <S as Read<u8>>::Error: Freeze, <S as Write<u8>>::Error: Freeze,

§

impl<S> RefUnwindSafe for ShellError<S>
where <S as Read<u8>>::Error: RefUnwindSafe, <S as Write<u8>>::Error: RefUnwindSafe,

§

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

§

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

§

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

§

impl<S> UnwindSafe for ShellError<S>
where <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.