Trait mesh::payload::table::StructMetadata

source ·
pub unsafe trait StructMetadata {
    const NUMBERS: &'static [u32];
    const OFFSETS: &'static [usize];
}
Expand description

Trait for types that can be encoded using TableEncoder.

§Safety

The implementor must ensure that this metadata describes all fields within Self, and that OFFSETS are the correct byte offsets to the fields.

Required Associated Constants§

source

const NUMBERS: &'static [u32]

The field numbers for each field.

source

const OFFSETS: &'static [usize]

The byte offset to each field within the struct.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> StructMetadata for ()

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0> StructMetadata for (E0,)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1> StructMetadata for (E0, E1)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1, E2> StructMetadata for (E0, E1, E2)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1, E2, E3> StructMetadata for (E0, E1, E2, E3)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1, E2, E3, E4> StructMetadata for (E0, E1, E2, E3, E4)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1, E2, E3, E4, E5> StructMetadata for (E0, E1, E2, E3, E4, E5)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<'a, E0, E1, E2, E3, E4, E5, E6> StructMetadata for (E0, E1, E2, E3, E4, E5, E6)

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<T> StructMetadata for Range<T>

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

Implementors§

source§

impl StructMetadata for RemoteError

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl StructMetadata for WritePipe

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl StructMetadata for Address

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl StructMetadata for CancelContext

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl StructMetadata for NodeId

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl StructMetadata for PortId

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl StructMetadata for Uuid

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl StructMetadata for ProtobufAny

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl StructMetadata for Timestamp

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<I, R> StructMetadata for Rpc<I, R>
where I: MeshField, R: MeshField,

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<T> StructMetadata for Cell<T>
where T: MeshField + Sync + Clone,

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<T> StructMetadata for CellUpdater<T>

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<T> StructMetadata for MpscReceiver<T>
where T: MeshField,

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<T> StructMetadata for MpscSender<T>
where T: MeshField,

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<T> StructMetadata for OneshotReceiver<T>
where T: MeshField,

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<T> StructMetadata for OneshotSender<T>
where T: MeshField,

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<T> StructMetadata for Receiver<T>
where T: MeshField,

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _

source§

impl<T> StructMetadata for Sender<T>
where T: MeshField,

source§

const NUMBERS: &'static [u32] = _

source§

const OFFSETS: &'static [usize] = _