Trait HandleEncoder

pub trait HandleEncoder: InternalHandleEncoder {
    // 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§

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

Pushes a handle into the encoder.

fn handles_pushed(&self) -> usize

Returns the number of handles added to the encoder.

Implementors§