fidl_next::fuchsia

Trait HandleDecoder

Source
pub trait HandleDecoder {
    // Required methods
    fn take_handle(&mut self) -> Result<Handle, DecodeError>;
    fn handles_remaining(&mut self) -> usize;
}
Expand description

A decoder which support Zircon handles.

Required Methods§

Source

fn take_handle(&mut self) -> Result<Handle, DecodeError>

Takes the next handle from the decoder.

Source

fn handles_remaining(&mut self) -> usize

Returns the number of handles remaining in the decoder.

Implementors§