Skip to main content

HandleDecoder

Trait HandleDecoder 

Source
pub trait HandleDecoder: InternalHandleDecoder {
    // Required methods
    fn take_raw_handle(&mut self) -> Result<u32, 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<u32, 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§