pub struct NakPduSmallBuilder<'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> NakPduSmallBuilder<'a, S>
impl<'a, S: State> NakPduSmallBuilder<'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]) -> NakPduSmallBuilder<'a, SetBuffer<S>>where
S::Buffer: IsUnset,
pub fn buffer(self, value: &'a mut [u8]) -> NakPduSmallBuilder<'a, SetBuffer<S>>where
S::Buffer: IsUnset,
Required.
Sourcepub fn source_entity_id(
self,
value: EntityId,
) -> NakPduSmallBuilder<'a, SetSourceEntityId<S>>where
S::SourceEntityId: IsUnset,
pub fn source_entity_id(
self,
value: EntityId,
) -> NakPduSmallBuilder<'a, SetSourceEntityId<S>>where
S::SourceEntityId: IsUnset,
Required.
Sourcepub fn dest_entity_id(
self,
value: EntityId,
) -> NakPduSmallBuilder<'a, SetDestEntityId<S>>where
S::DestEntityId: IsUnset,
pub fn dest_entity_id(
self,
value: EntityId,
) -> NakPduSmallBuilder<'a, SetDestEntityId<S>>where
S::DestEntityId: IsUnset,
Required.
Sourcepub fn transaction_seq_num(
self,
value: TransactionSeqNum,
) -> NakPduSmallBuilder<'a, SetTransactionSeqNum<S>>where
S::TransactionSeqNum: IsUnset,
pub fn transaction_seq_num(
self,
value: TransactionSeqNum,
) -> NakPduSmallBuilder<'a, SetTransactionSeqNum<S>>where
S::TransactionSeqNum: IsUnset,
Required.
Sourcepub fn transmission_mode(
self,
value: TransmissionMode,
) -> NakPduSmallBuilder<'a, SetTransmissionMode<S>>where
S::TransmissionMode: IsUnset,
pub fn transmission_mode(
self,
value: TransmissionMode,
) -> NakPduSmallBuilder<'a, SetTransmissionMode<S>>where
S::TransmissionMode: IsUnset,
Required.
Sourcepub fn crc_flag(self, value: bool) -> NakPduSmallBuilder<'a, SetCrcFlag<S>>where
S::CrcFlag: IsUnset,
pub fn crc_flag(self, value: bool) -> NakPduSmallBuilder<'a, SetCrcFlag<S>>where
S::CrcFlag: IsUnset,
Required.
Sourcepub fn start_of_scope(
self,
value: u32,
) -> NakPduSmallBuilder<'a, SetStartOfScope<S>>where
S::StartOfScope: IsUnset,
pub fn start_of_scope(
self,
value: u32,
) -> NakPduSmallBuilder<'a, SetStartOfScope<S>>where
S::StartOfScope: IsUnset,
Required.
Sourcepub fn end_of_scope(
self,
value: u32,
) -> NakPduSmallBuilder<'a, SetEndOfScope<S>>where
S::EndOfScope: IsUnset,
pub fn end_of_scope(
self,
value: u32,
) -> NakPduSmallBuilder<'a, SetEndOfScope<S>>where
S::EndOfScope: IsUnset,
Required.
Sourcepub fn segment_requests(
self,
value: &'a [NakSegmentRequest],
) -> NakPduSmallBuilder<'a, SetSegmentRequests<S>>where
S::SegmentRequests: IsUnset,
pub fn segment_requests(
self,
value: &'a [NakSegmentRequest],
) -> NakPduSmallBuilder<'a, SetSegmentRequests<S>>where
S::SegmentRequests: IsUnset,
Required.
Auto Trait Implementations§
impl<'a, S> Freeze for NakPduSmallBuilder<'a, S>
impl<'a, S> RefUnwindSafe for NakPduSmallBuilder<'a, S>
impl<'a, S> Send for NakPduSmallBuilder<'a, S>
impl<'a, S> Sync for NakPduSmallBuilder<'a, S>
impl<'a, S> Unpin for NakPduSmallBuilder<'a, S>
impl<'a, S> UnsafeUnpin for NakPduSmallBuilder<'a, S>
impl<'a, S = Empty> !UnwindSafe for NakPduSmallBuilder<'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