fidl_next::fuchsia

Trait HandleEncoder

Source
pub trait HandleEncoder {
    // Required methods
    fn push_handle(&mut self, handle: Handle) -> Result<(), EncodeError>;
    fn handles_pushed(&self) -> usize;
}
Expand description

An encoder which supports Zircon handles.

Required Methods§

Source

fn push_handle(&mut self, handle: Handle) -> Result<(), EncodeError>

Pushes a handle into the encoder.

Source

fn handles_pushed(&self) -> usize

Returns the number of handles added to the encoder.

Implementors§