pub enum Error<E = <Channel as Transport>::Error> {
    Encode(EncodeError),
    Decode(DecodeError),
    Protocol(ProtocolError<E>),
}Expand description
An encoding, decoding, or transport FIDL error.
Variants§
Encode(EncodeError)
A FIDL encoding error.
Decode(DecodeError)
A FIDL decoding error.
Protocol(ProtocolError<E>)
A FIDL protocol error.
Trait Implementations§
Source§impl<E> Error for Error<E>
 
impl<E> Error for Error<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl<E> From<DecodeError> for Error<E>
 
impl<E> From<DecodeError> for Error<E>
Source§fn from(source: DecodeError) -> Self
 
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl<E> From<EncodeError> for Error<E>
 
impl<E> From<EncodeError> for Error<E>
Source§fn from(source: EncodeError) -> Self
 
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Source§impl<E> From<ProtocolError<E>> for Error<E>
 
impl<E> From<ProtocolError<E>> for Error<E>
Source§fn from(source: ProtocolError<E>) -> Self
 
fn from(source: ProtocolError<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
    E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
    E: RefUnwindSafe,
impl<E> Send for Error<E>where
    E: Send,
impl<E> Sync for Error<E>where
    E: Sync,
impl<E> Unpin for Error<E>where
    E: Unpin,
impl<E> UnwindSafe for Error<E>where
    E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
Source§impl<T> InstanceFromServiceTransport<T> for T
 
impl<T> InstanceFromServiceTransport<T> for T
Source§fn from_service_transport(handle: T) -> T
 
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type 
T to Self