esp_idf_svc::hal::io

Trait ErrorType

Source
pub trait ErrorType {
    type Error: Error;
}
Expand description

Base trait for all IO traits, defining the error type.

All IO operations of all traits return the error defined in this trait.

Having a shared trait instead of having every trait define its own Error associated type enforces all impls on the same type use the same error. This is very convenient when writing generic code, it means you have to handle a single error type T::Error, instead of <T as Read>::Error and <T as Write>::Error which might be different types.

Required Associated Types§

Source

type Error: Error

Error type of all the IO operations on this type.

Implementations on Foreign Types§

Source§

impl ErrorType for &[u8]

Source§

type Error = Infallible

Source§

impl ErrorType for &mut [u8]

Source§

impl ErrorType for Vec<u8>

Source§

type Error = Infallible

Source§

impl<C> ErrorType for Client<C>
where C: ErrorType,

Source§

impl<C> ErrorType for Request<C>
where C: ErrorType,

Source§

impl<C> ErrorType for Response<C>
where C: ErrorType,

Source§

impl<C> ErrorType for Client<C>
where C: ErrorType,

Source§

impl<C> ErrorType for Request<C>
where C: ErrorType,

Source§

impl<C> ErrorType for Response<C>
where C: ErrorType,

Source§

impl<M, const N: usize> ErrorType for &Pipe<M, N>
where M: RawMutex,

Source§

type Error = Infallible

Source§

impl<M, const N: usize> ErrorType for Pipe<M, N>
where M: RawMutex,

Source§

type Error = Infallible

Source§

impl<M, const N: usize> ErrorType for Reader<'_, M, N>
where M: RawMutex,

Source§

type Error = Infallible

Source§

impl<M, const N: usize> ErrorType for Writer<'_, M, N>
where M: RawMutex,

Source§

type Error = Infallible

Source§

impl<T> ErrorType for &mut T
where T: ErrorType + ?Sized,

Source§

impl<T> ErrorType for Box<T>
where T: ErrorType + ?Sized,

Implementors§

Source§

impl ErrorType for esp_idf_svc::http::client::EspHttpConnection

Source§

impl ErrorType for esp_idf_svc::http::server::EspHttpConnection<'_>

Source§

impl ErrorType for EspHttpRawConnection<'_>

Source§

impl ErrorType for EspFirmwareInfoLoad

Source§

impl ErrorType for EspFirmwareInfoLoader

Source§

impl ErrorType for EspOta

Source§

impl ErrorType for EspOtaUpdate<'_>

Source§

impl ErrorType for EspOtaUpdateFinished<'_>

Source§

impl ErrorType for AdcDriver<'_>

Source§

impl ErrorType for UartDriver<'_>

Source§

impl ErrorType for UartRxDriver<'_>

Source§

impl ErrorType for UartTxDriver<'_>

Source§

impl ErrorType for UsbSerialDriver<'_>

Source§

impl<'d, T> ErrorType for AsyncUartDriver<'d, T>
where T: BorrowMut<UartDriver<'d>>,

Source§

impl<'d, T> ErrorType for AsyncUartRxDriver<'d, T>
where T: BorrowMut<UartRxDriver<'d>>,

Source§

impl<'d, T> ErrorType for AsyncUartTxDriver<'d, T>
where T: BorrowMut<UartTxDriver<'d>>,

Source§

impl<C> ErrorType for esp_idf_svc::http::client::Request<C>
where C: ErrorType,

Source§

impl<C> ErrorType for esp_idf_svc::http::client::Response<C>
where C: ErrorType,

Source§

impl<C> ErrorType for esp_idf_svc::http::server::Request<C>
where C: ErrorType,

Source§

impl<C> ErrorType for esp_idf_svc::http::server::Response<C>
where C: ErrorType,

Source§

impl<Dir> ErrorType for I2sDriver<'_, Dir>

Source§

impl<S> ErrorType for EspAsyncTls<S>
where S: PollableSocket,

Source§

impl<S> ErrorType for EspTls<S>
where S: Socket,