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§
Sourcefn take_handle(&mut self) -> Result<Handle, DecodeError>
fn take_handle(&mut self) -> Result<Handle, DecodeError>
Takes the next handle from the decoder.
Sourcefn handles_remaining(&mut self) -> usize
fn handles_remaining(&mut self) -> usize
Returns the number of handles remaining in the decoder.