Type Alias fidl::Result

source ·
pub type Result<T> = Result<T, Error>;
Expand description

A specialized Result type for FIDL operations.

Aliased Type§

enum Result<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

source§

impl<T: TypeMarker, E: TypeMarker> Decode<ResultType<T, E>> for Result<T::Owned, E::Owned>

source§

fn new_empty() -> Self

Creates a valid instance of Self. The specific value does not matter, since it will be overwritten by decode.
source§

unsafe fn decode( &mut self, decoder: &mut Decoder<'_>, offset: usize, depth: Depth ) -> Result<()>

Decodes an object of type T from the decoder’s buffers into self. Read more
source§

impl<T: TypeMarker, X: Encode<T>, E: TypeMarker, Y: Encode<E>> Encode<ResultType<T, E>> for Result<X, Y>

source§

unsafe fn encode( self, encoder: &mut Encoder<'_>, offset: usize, depth: Depth ) -> Result<()>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more