Skip to main content

AosTransferFrameBuilder

Struct AosTransferFrameBuilder 

Source
pub struct AosTransferFrameBuilder<'a, S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<'a, S: State> AosTransferFrameBuilder<'a, S>

Source

pub fn build(self) -> Result<&'a mut AosTransferFrame, BuildError>
where S: IsComplete,

Finishes building and performs the requested action.

Source

pub fn buffer( self, value: &'a mut [u8], ) -> AosTransferFrameBuilder<'a, SetBuffer<S>>
where S::Buffer: IsUnset,

Required.

Source

pub fn scid(self, value: Scid) -> AosTransferFrameBuilder<'a, SetScid<S>>
where S::Scid: IsUnset,

Required.

Source

pub fn vcid(self, value: Vcid) -> AosTransferFrameBuilder<'a, SetVcid<S>>
where S::Vcid: IsUnset,

Required.

Source

pub fn vc_frame_count( self, value: u32, ) -> AosTransferFrameBuilder<'a, SetVcFrameCount<S>>
where S::VcFrameCount: IsUnset,

Required.

Source

pub fn replay_flag( self, value: bool, ) -> AosTransferFrameBuilder<'a, SetReplayFlag<S>>
where S::ReplayFlag: IsUnset,

Required.

Source

pub fn usage_flag( self, value: bool, ) -> AosTransferFrameBuilder<'a, SetUsageFlag<S>>
where S::UsageFlag: IsUnset,

Required.

Source

pub fn payload( self, value: &'a [u8], ) -> AosTransferFrameBuilder<'a, SetPayload<S>>
where S::Payload: IsUnset,

Required.

Auto Trait Implementations§

§

impl<'a, S> Freeze for AosTransferFrameBuilder<'a, S>

§

impl<'a, S> RefUnwindSafe for AosTransferFrameBuilder<'a, S>

§

impl<'a, S> Send for AosTransferFrameBuilder<'a, S>

§

impl<'a, S> Sync for AosTransferFrameBuilder<'a, S>

§

impl<'a, S> Unpin for AosTransferFrameBuilder<'a, S>

§

impl<'a, S> UnsafeUnpin for AosTransferFrameBuilder<'a, S>

§

impl<'a, S = Empty> !UnwindSafe for AosTransferFrameBuilder<'a, S>

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> 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> Same for T

Source§

type Output = T

Should always be Self
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.