fidl_next

Trait Encodable

Source
pub trait Encodable {
    type Encoded<'buf>;
}
Expand description

A type which can be encoded as FIDL.

Required Associated Types§

Source

type Encoded<'buf>

The wire type for the 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 Encodable for bool

Source§

type Encoded<'buf> = bool

Source§

impl Encodable for f32

Source§

type Encoded<'buf> = f32_le

Source§

impl Encodable for f64

Source§

type Encoded<'buf> = f64_le

Source§

impl Encodable for i8

Source§

type Encoded<'buf> = i8

Source§

impl Encodable for i16

Source§

type Encoded<'buf> = i16_le

Source§

impl Encodable for i32

Source§

type Encoded<'buf> = i32_le

Source§

impl Encodable for i64

Source§

type Encoded<'buf> = i64_le

Source§

impl Encodable for u8

Source§

type Encoded<'buf> = u8

Source§

impl Encodable for u16

Source§

type Encoded<'buf> = u16_le

Source§

impl Encodable for u32

Source§

type Encoded<'buf> = u32_le

Source§

impl Encodable for u64

Source§

type Encoded<'buf> = u64_le

Source§

impl Encodable for ()

Source§

type Encoded<'buf> = ()

Source§

impl Encodable for Channel

Source§

impl Encodable for Handle

Source§

impl Encodable for String

Source§

type Encoded<'buf> = WireString<'buf>

Source§

impl<T: Encodable> Encodable for Box<T>

Source§

type Encoded<'buf> = <T as Encodable>::Encoded<'buf>

Source§

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

Source§

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

Source§

impl<T: Encodable, const N: usize> Encodable for [T; N]

Source§

type Encoded<'buf> = [<T as Encodable>::Encoded<'buf>; N]

Source§

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

Source§

type Encoded<'buf> = <T as EncodableOption>::EncodedOption<'buf>

Implementors§