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>
impl<'a, S: State> FileDataPduWithMetaBuilder<'a, S>
Sourcepub fn build(self) -> Result<&'a mut Pdu, CfdpError>where
S: IsComplete,
pub fn build(self) -> Result<&'a mut Pdu, CfdpError>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn buffer(
self,
value: &'a mut [u8],
) -> FileDataPduWithMetaBuilder<'a, SetBuffer<S>>where
S::Buffer: IsUnset,
pub fn buffer(
self,
value: &'a mut [u8],
) -> FileDataPduWithMetaBuilder<'a, SetBuffer<S>>where
S::Buffer: IsUnset,
Required.
Sourcepub fn source_entity_id(
self,
value: EntityId,
) -> FileDataPduWithMetaBuilder<'a, SetSourceEntityId<S>>where
S::SourceEntityId: IsUnset,
pub fn source_entity_id(
self,
value: EntityId,
) -> FileDataPduWithMetaBuilder<'a, SetSourceEntityId<S>>where
S::SourceEntityId: IsUnset,
Required.
Sourcepub fn destination_entity_id(
self,
value: EntityId,
) -> FileDataPduWithMetaBuilder<'a, SetDestinationEntityId<S>>where
S::DestinationEntityId: IsUnset,
pub fn destination_entity_id(
self,
value: EntityId,
) -> FileDataPduWithMetaBuilder<'a, SetDestinationEntityId<S>>where
S::DestinationEntityId: IsUnset,
Required.
Sourcepub fn transaction_seq_num(
self,
value: TransactionSeqNum,
) -> FileDataPduWithMetaBuilder<'a, SetTransactionSeqNum<S>>where
S::TransactionSeqNum: IsUnset,
pub fn transaction_seq_num(
self,
value: TransactionSeqNum,
) -> FileDataPduWithMetaBuilder<'a, SetTransactionSeqNum<S>>where
S::TransactionSeqNum: IsUnset,
Required.
Sourcepub fn transmission_mode(
self,
value: TransmissionMode,
) -> FileDataPduWithMetaBuilder<'a, SetTransmissionMode<S>>where
S::TransmissionMode: IsUnset,
pub fn transmission_mode(
self,
value: TransmissionMode,
) -> FileDataPduWithMetaBuilder<'a, SetTransmissionMode<S>>where
S::TransmissionMode: IsUnset,
Required.
Sourcepub fn large_file_flag(
self,
value: bool,
) -> FileDataPduWithMetaBuilder<'a, SetLargeFileFlag<S>>where
S::LargeFileFlag: IsUnset,
pub fn large_file_flag(
self,
value: bool,
) -> FileDataPduWithMetaBuilder<'a, SetLargeFileFlag<S>>where
S::LargeFileFlag: IsUnset,
Required.
Sourcepub fn crc_flag(
self,
value: bool,
) -> FileDataPduWithMetaBuilder<'a, SetCrcFlag<S>>where
S::CrcFlag: IsUnset,
pub fn crc_flag(
self,
value: bool,
) -> FileDataPduWithMetaBuilder<'a, SetCrcFlag<S>>where
S::CrcFlag: IsUnset,
Required.
Sourcepub fn segmentation_control(
self,
value: bool,
) -> FileDataPduWithMetaBuilder<'a, SetSegmentationControl<S>>where
S::SegmentationControl: IsUnset,
pub fn segmentation_control(
self,
value: bool,
) -> FileDataPduWithMetaBuilder<'a, SetSegmentationControl<S>>where
S::SegmentationControl: IsUnset,
Required.
Sourcepub fn record_continuation_state(
self,
value: u8,
) -> FileDataPduWithMetaBuilder<'a, SetRecordContinuationState<S>>where
S::RecordContinuationState: IsUnset,
pub fn record_continuation_state(
self,
value: u8,
) -> FileDataPduWithMetaBuilder<'a, SetRecordContinuationState<S>>where
S::RecordContinuationState: IsUnset,
Required.
Sourcepub fn segment_metadata(
self,
value: &'a [u8],
) -> FileDataPduWithMetaBuilder<'a, SetSegmentMetadata<S>>where
S::SegmentMetadata: IsUnset,
pub fn segment_metadata(
self,
value: &'a [u8],
) -> FileDataPduWithMetaBuilder<'a, SetSegmentMetadata<S>>where
S::SegmentMetadata: IsUnset,
Required.
Sourcepub fn offset(self, value: u64) -> FileDataPduWithMetaBuilder<'a, SetOffset<S>>where
S::Offset: IsUnset,
pub fn offset(self, value: u64) -> FileDataPduWithMetaBuilder<'a, SetOffset<S>>where
S::Offset: IsUnset,
Required.
Sourcepub fn file_data_len(
self,
value: usize,
) -> FileDataPduWithMetaBuilder<'a, SetFileDataLen<S>>where
S::FileDataLen: IsUnset,
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more