Skip to main content

Proximity1TransferFrameBuilder

Struct Proximity1TransferFrameBuilder 

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

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

Implementations§

Source§

impl<'f1, S: State> Proximity1TransferFrameBuilder<'f1, S>

Source

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

Finishes building and performs the requested action.

Source

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

Required.

Source

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

Required.

Source

pub fn qos(self, value: QoS) -> Proximity1TransferFrameBuilder<'f1, SetQos<S>>
where S::Qos: IsUnset,

Required.

Source

pub fn pdu_type( self, value: PduType, ) -> Proximity1TransferFrameBuilder<'f1, SetPduType<S>>
where S::PduType: IsUnset,

Required.

Source

pub fn dfc_id( self, value: DfcId, ) -> Proximity1TransferFrameBuilder<'f1, SetDfcId<S>>
where S::DfcId: IsUnset,

Required.

Source

pub fn pcid( self, value: bool, ) -> Proximity1TransferFrameBuilder<'f1, SetPcid<S>>
where S::Pcid: IsUnset,

Required.

Source

pub fn port_id( self, value: u8, ) -> Proximity1TransferFrameBuilder<'f1, SetPortId<S>>
where S::PortId: IsUnset,

Required.

Source

pub fn src_dest( self, value: SrcDest, ) -> Proximity1TransferFrameBuilder<'f1, SetSrcDest<S>>
where S::SrcDest: IsUnset,

Required.

Source

pub fn fsn(self, value: u8) -> Proximity1TransferFrameBuilder<'f1, SetFsn<S>>
where S::Fsn: IsUnset,

Required.

Source

pub fn data_field_len( self, value: usize, ) -> Proximity1TransferFrameBuilder<'f1, SetDataFieldLen<S>>
where S::DataFieldLen: IsUnset,

Required.

Auto Trait Implementations§

§

impl<'f1, S> Freeze for Proximity1TransferFrameBuilder<'f1, S>

§

impl<'f1, S> RefUnwindSafe for Proximity1TransferFrameBuilder<'f1, S>

§

impl<'f1, S> Send for Proximity1TransferFrameBuilder<'f1, S>

§

impl<'f1, S> Sync for Proximity1TransferFrameBuilder<'f1, S>

§

impl<'f1, S> Unpin for Proximity1TransferFrameBuilder<'f1, S>

§

impl<'f1, S> UnsafeUnpin for Proximity1TransferFrameBuilder<'f1, S>

§

impl<'f1, S = Empty> !UnwindSafe for Proximity1TransferFrameBuilder<'f1, 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.