fidl_next

Trait EncodableOption

Source
pub trait EncodableOption {
    type EncodedOption<'buf>;
}
Expand description

A type which can be encoded as FIDL when optional.

Required Associated Types§

Source

type EncodedOption<'buf>

The wire type for the optional value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl EncodableOption for bool

Source§

type EncodedOption<'buf> = WireBox<'buf, bool>

Source§

impl EncodableOption for f32

Source§

impl EncodableOption for f64

Source§

impl EncodableOption for i8

Source§

type EncodedOption<'buf> = WireBox<'buf, i8>

Source§

impl EncodableOption for i16

Source§

impl EncodableOption for i32

Source§

impl EncodableOption for i64

Source§

impl EncodableOption for u8

Source§

type EncodedOption<'buf> = WireBox<'buf, u8>

Source§

impl EncodableOption for u16

Source§

impl EncodableOption for u32

Source§

impl EncodableOption for u64

Source§

impl EncodableOption for ()

Source§

type EncodedOption<'buf> = WireBox<'buf, ()>

Source§

impl EncodableOption for Channel

Source§

impl EncodableOption for Handle

Source§

impl EncodableOption for String

Source§

impl<T: Encodable> EncodableOption for Vec<T>

Source§

type EncodedOption<'buf> = WireOptionalVector<'buf, <T as Encodable>::Encoded<'buf>>

Implementors§