Trait HandleDecoder

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

A decoder which support Zircon handles.

Required Methods§

Source

fn take_raw_handle(&mut self) -> Result<zx_handle_t, DecodeError>

Takes the next raw handle from the decoder.

The returned raw handle must not be considered owned until the decoder is committed.

Source

fn handles_remaining(&mut self) -> usize

Returns the number of handles remaining in the decoder.

Implementors§