Skip to main content

FileDataPduWithMetaBuilder

Struct FileDataPduWithMetaBuilder 

Source
pub struct FileDataPduWithMetaBuilder<'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> FileDataPduWithMetaBuilder<'a, S>

Source

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

Finishes building and performs the requested action.

Source

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

Required.

Source

pub fn source_entity_id( self, value: EntityId, ) -> FileDataPduWithMetaBuilder<'a, SetSourceEntityId<S>>
where S::SourceEntityId: IsUnset,

Required.

Source

pub fn destination_entity_id( self, value: EntityId, ) -> FileDataPduWithMetaBuilder<'a, SetDestinationEntityId<S>>
where S::DestinationEntityId: IsUnset,

Required.

Source

pub fn transaction_seq_num( self, value: TransactionSeqNum, ) -> FileDataPduWithMetaBuilder<'a, SetTransactionSeqNum<S>>
where S::TransactionSeqNum: IsUnset,

Required.

Source

pub fn transmission_mode( self, value: TransmissionMode, ) -> FileDataPduWithMetaBuilder<'a, SetTransmissionMode<S>>
where S::TransmissionMode: IsUnset,

Required.

Source

pub fn large_file_flag( self, value: bool, ) -> FileDataPduWithMetaBuilder<'a, SetLargeFileFlag<S>>
where S::LargeFileFlag: IsUnset,

Required.

Source

pub fn crc_flag( self, value: bool, ) -> FileDataPduWithMetaBuilder<'a, SetCrcFlag<S>>
where S::CrcFlag: IsUnset,

Required.

Source

pub fn segmentation_control( self, value: bool, ) -> FileDataPduWithMetaBuilder<'a, SetSegmentationControl<S>>
where S::SegmentationControl: IsUnset,

Required.

Source

pub fn record_continuation_state( self, value: u8, ) -> FileDataPduWithMetaBuilder<'a, SetRecordContinuationState<S>>
where S::RecordContinuationState: IsUnset,

Required.

Source

pub fn segment_metadata( self, value: &'a [u8], ) -> FileDataPduWithMetaBuilder<'a, SetSegmentMetadata<S>>
where S::SegmentMetadata: IsUnset,

Required.

Source

pub fn offset(self, value: u64) -> FileDataPduWithMetaBuilder<'a, SetOffset<S>>
where S::Offset: IsUnset,

Required.

Source

pub fn file_data_len( self, value: usize, ) -> FileDataPduWithMetaBuilder<'a, SetFileDataLen<S>>
where S::FileDataLen: IsUnset,

Required.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

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