Struct CommandDataDescriptionBuilder

Source
pub struct CommandDataDescriptionBuilder<ANNOTATIONS = Array<'static, i16, Annotation<'static>>, CAPABILITIES = u64, RESULT_CARDINALITY = u8, INPUT_TYPEDESC_ID = Uuid, INPUT_TYPEDESC = Array<'static, u32, u8>, OUTPUT_TYPEDESC_ID = Uuid, OUTPUT_TYPEDESC = Array<'static, u32, u8>>
where ANNOTATIONS: EncoderFor<Array<'static, i16, Annotation<'static>>>, CAPABILITIES: EncoderFor<u64>, RESULT_CARDINALITY: EncoderFor<u8>, INPUT_TYPEDESC_ID: EncoderFor<Uuid>, INPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>>, OUTPUT_TYPEDESC_ID: EncoderFor<Uuid>, OUTPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>>,
{ pub annotations: ANNOTATIONS, pub capabilities: CAPABILITIES, pub result_cardinality: RESULT_CARDINALITY, pub input_typedesc_id: INPUT_TYPEDESC_ID, pub input_typedesc: INPUT_TYPEDESC, pub output_typedesc_id: OUTPUT_TYPEDESC_ID, pub output_typedesc: OUTPUT_TYPEDESC, }

Fields§

§annotations: ANNOTATIONS

Message annotations.

§capabilities: CAPABILITIES

A bit mask of allowed capabilities.

§result_cardinality: RESULT_CARDINALITY

Actual result cardinality.

§input_typedesc_id: INPUT_TYPEDESC_ID

Argument data descriptor ID.

§input_typedesc: INPUT_TYPEDESC

Argument data descriptor.

§output_typedesc_id: OUTPUT_TYPEDESC_ID

Output data descriptor ID.

§output_typedesc: OUTPUT_TYPEDESC

Output data descriptor.

Trait Implementations§

Source§

impl<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC> BuilderFor for CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>
where ANNOTATIONS: EncoderFor<Array<'static, i16, Annotation<'static>>>, CAPABILITIES: EncoderFor<u64>, RESULT_CARDINALITY: EncoderFor<u8>, INPUT_TYPEDESC_ID: EncoderFor<Uuid>, INPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>>, OUTPUT_TYPEDESC_ID: EncoderFor<Uuid>, OUTPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>>,

Source§

impl<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC> Debug for CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>
where ANNOTATIONS: EncoderFor<Array<'static, i16, Annotation<'static>>> + Debug, CAPABILITIES: EncoderFor<u64> + Debug, RESULT_CARDINALITY: EncoderFor<u8> + Debug, INPUT_TYPEDESC_ID: EncoderFor<Uuid> + Debug, INPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>> + Debug, OUTPUT_TYPEDESC_ID: EncoderFor<Uuid> + Debug, OUTPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>> + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC> Default for CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>
where ANNOTATIONS: EncoderFor<Array<'static, i16, Annotation<'static>>> + Default, CAPABILITIES: EncoderFor<u64> + Default, RESULT_CARDINALITY: EncoderFor<u8> + Default, INPUT_TYPEDESC_ID: EncoderFor<Uuid> + Default, INPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>> + Default, OUTPUT_TYPEDESC_ID: EncoderFor<Uuid> + Default, OUTPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>> + Default,

Source§

fn default() -> CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>

Returns the “default value” for a type. Read more
Source§

impl<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC> EncoderFor<CommandDataDescription<'static>> for &CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>
where ANNOTATIONS: EncoderFor<Array<'static, i16, Annotation<'static>>>, CAPABILITIES: EncoderFor<u64>, RESULT_CARDINALITY: EncoderFor<u8>, INPUT_TYPEDESC_ID: EncoderFor<Uuid>, INPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>>, OUTPUT_TYPEDESC_ID: EncoderFor<Uuid>, OUTPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>>,

Source§

fn encode_for(&self, buf: &mut BufWriter<'_>)

Source§

impl<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC> EncoderFor<CommandDataDescription<'static>> for CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>
where ANNOTATIONS: EncoderFor<Array<'static, i16, Annotation<'static>>>, CAPABILITIES: EncoderFor<u64>, RESULT_CARDINALITY: EncoderFor<u8>, INPUT_TYPEDESC_ID: EncoderFor<Uuid>, INPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>>, OUTPUT_TYPEDESC_ID: EncoderFor<Uuid>, OUTPUT_TYPEDESC: EncoderFor<Array<'static, u32, u8>>,

Source§

fn encode_for(&self, buf: &mut BufWriter<'_>)

Auto Trait Implementations§

§

impl<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC> Freeze for CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>
where ANNOTATIONS: Freeze, CAPABILITIES: Freeze, RESULT_CARDINALITY: Freeze, INPUT_TYPEDESC_ID: Freeze, INPUT_TYPEDESC: Freeze, OUTPUT_TYPEDESC_ID: Freeze, OUTPUT_TYPEDESC: Freeze,

§

impl<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC> RefUnwindSafe for CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>
where ANNOTATIONS: RefUnwindSafe, CAPABILITIES: RefUnwindSafe, RESULT_CARDINALITY: RefUnwindSafe, INPUT_TYPEDESC_ID: RefUnwindSafe, INPUT_TYPEDESC: RefUnwindSafe, OUTPUT_TYPEDESC_ID: RefUnwindSafe, OUTPUT_TYPEDESC: RefUnwindSafe,

§

impl<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC> Send for CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>
where ANNOTATIONS: Send, CAPABILITIES: Send, RESULT_CARDINALITY: Send, INPUT_TYPEDESC_ID: Send, INPUT_TYPEDESC: Send, OUTPUT_TYPEDESC_ID: Send, OUTPUT_TYPEDESC: Send,

§

impl<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC> Sync for CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>
where ANNOTATIONS: Sync, CAPABILITIES: Sync, RESULT_CARDINALITY: Sync, INPUT_TYPEDESC_ID: Sync, INPUT_TYPEDESC: Sync, OUTPUT_TYPEDESC_ID: Sync, OUTPUT_TYPEDESC: Sync,

§

impl<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC> Unpin for CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>
where ANNOTATIONS: Unpin, CAPABILITIES: Unpin, RESULT_CARDINALITY: Unpin, INPUT_TYPEDESC_ID: Unpin, INPUT_TYPEDESC: Unpin, OUTPUT_TYPEDESC_ID: Unpin, OUTPUT_TYPEDESC: Unpin,

§

impl<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC> UnwindSafe for CommandDataDescriptionBuilder<ANNOTATIONS, CAPABILITIES, RESULT_CARDINALITY, INPUT_TYPEDESC_ID, INPUT_TYPEDESC, OUTPUT_TYPEDESC_ID, OUTPUT_TYPEDESC>
where ANNOTATIONS: UnwindSafe, CAPABILITIES: UnwindSafe, RESULT_CARDINALITY: UnwindSafe, INPUT_TYPEDESC_ID: UnwindSafe, INPUT_TYPEDESC: UnwindSafe, OUTPUT_TYPEDESC_ID: UnwindSafe, OUTPUT_TYPEDESC: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> EncoderForExt for T
where T: ?Sized,

Source§

fn to_vec<F>(&self) -> Vec<u8>
where F: 'static, Self: EncoderFor<F>,

Convert this builder into a vector of bytes. This is generally not the most efficient way to perform serialization.
Source§

fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>
where F: 'static, Self: EncoderFor<F>,

Encode this builder into a given buffer. If the buffer is too small, the function will return the number of bytes required to encode the builder.
Source§

fn encode_buffer_uninit<'a, F>( &self, buf: &'a mut [MaybeUninit<u8>], ) -> Result<&'a mut [u8], usize>
where F: 'static, Self: EncoderFor<F>,

Encode this builder into a given buffer. If the buffer is too small, the function will return the number of bytes required to encode the builder.
Source§

fn measure<F>(&self) -> usize
where F: 'static, Self: EncoderFor<F>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.