pub struct UslpTransferFrameBuilder<'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> UslpTransferFrameBuilder<'f1, S>
impl<'f1, S: State> UslpTransferFrameBuilder<'f1, S>
Sourcepub fn build(self) -> Result<&'f1 mut UslpTransferFrame, BuildError>where
S: IsComplete,
pub fn build(self) -> Result<&'f1 mut UslpTransferFrame, BuildError>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn buffer(
self,
value: &'f1 mut [u8],
) -> UslpTransferFrameBuilder<'f1, SetBuffer<S>>where
S::Buffer: IsUnset,
pub fn buffer(
self,
value: &'f1 mut [u8],
) -> UslpTransferFrameBuilder<'f1, SetBuffer<S>>where
S::Buffer: IsUnset,
Required.
Sourcepub fn scid(self, value: Scid) -> UslpTransferFrameBuilder<'f1, SetScid<S>>where
S::Scid: IsUnset,
pub fn scid(self, value: Scid) -> UslpTransferFrameBuilder<'f1, SetScid<S>>where
S::Scid: IsUnset,
Required.
Sourcepub fn vcid(self, value: Vcid) -> UslpTransferFrameBuilder<'f1, SetVcid<S>>where
S::Vcid: IsUnset,
pub fn vcid(self, value: Vcid) -> UslpTransferFrameBuilder<'f1, SetVcid<S>>where
S::Vcid: IsUnset,
Required.
Sourcepub fn source_or_dest(
self,
value: bool,
) -> UslpTransferFrameBuilder<'f1, SetSourceOrDest<S>>where
S::SourceOrDest: IsUnset,
pub fn source_or_dest(
self,
value: bool,
) -> UslpTransferFrameBuilder<'f1, SetSourceOrDest<S>>where
S::SourceOrDest: IsUnset,
Sourcepub fn maybe_source_or_dest(
self,
value: Option<bool>,
) -> UslpTransferFrameBuilder<'f1, SetSourceOrDest<S>>where
S::SourceOrDest: IsUnset,
pub fn maybe_source_or_dest(
self,
value: Option<bool>,
) -> UslpTransferFrameBuilder<'f1, SetSourceOrDest<S>>where
S::SourceOrDest: IsUnset,
Sourcepub fn map_id(self, value: u8) -> UslpTransferFrameBuilder<'f1, SetMapId<S>>where
S::MapId: IsUnset,
pub fn map_id(self, value: u8) -> UslpTransferFrameBuilder<'f1, SetMapId<S>>where
S::MapId: IsUnset,
Sourcepub fn maybe_map_id(
self,
value: Option<u8>,
) -> UslpTransferFrameBuilder<'f1, SetMapId<S>>where
S::MapId: IsUnset,
pub fn maybe_map_id(
self,
value: Option<u8>,
) -> UslpTransferFrameBuilder<'f1, SetMapId<S>>where
S::MapId: IsUnset,
Sourcepub fn bypass(self, value: bool) -> UslpTransferFrameBuilder<'f1, SetBypass<S>>where
S::Bypass: IsUnset,
pub fn bypass(self, value: bool) -> UslpTransferFrameBuilder<'f1, SetBypass<S>>where
S::Bypass: IsUnset,
Sourcepub fn maybe_bypass(
self,
value: Option<bool>,
) -> UslpTransferFrameBuilder<'f1, SetBypass<S>>where
S::Bypass: IsUnset,
pub fn maybe_bypass(
self,
value: Option<bool>,
) -> UslpTransferFrameBuilder<'f1, SetBypass<S>>where
S::Bypass: IsUnset,
Sourcepub fn protocol_control_command(
self,
value: bool,
) -> UslpTransferFrameBuilder<'f1, SetProtocolControlCommand<S>>where
S::ProtocolControlCommand: IsUnset,
pub fn protocol_control_command(
self,
value: bool,
) -> UslpTransferFrameBuilder<'f1, SetProtocolControlCommand<S>>where
S::ProtocolControlCommand: IsUnset,
Sourcepub fn maybe_protocol_control_command(
self,
value: Option<bool>,
) -> UslpTransferFrameBuilder<'f1, SetProtocolControlCommand<S>>where
S::ProtocolControlCommand: IsUnset,
pub fn maybe_protocol_control_command(
self,
value: Option<bool>,
) -> UslpTransferFrameBuilder<'f1, SetProtocolControlCommand<S>>where
S::ProtocolControlCommand: IsUnset,
Sourcepub fn ocf_flag(
self,
value: bool,
) -> UslpTransferFrameBuilder<'f1, SetOcfFlag<S>>where
S::OcfFlag: IsUnset,
pub fn ocf_flag(
self,
value: bool,
) -> UslpTransferFrameBuilder<'f1, SetOcfFlag<S>>where
S::OcfFlag: IsUnset,
Sourcepub fn maybe_ocf_flag(
self,
value: Option<bool>,
) -> UslpTransferFrameBuilder<'f1, SetOcfFlag<S>>where
S::OcfFlag: IsUnset,
pub fn maybe_ocf_flag(
self,
value: Option<bool>,
) -> UslpTransferFrameBuilder<'f1, SetOcfFlag<S>>where
S::OcfFlag: IsUnset,
Sourcepub fn vcf_count_length(
self,
value: u8,
) -> UslpTransferFrameBuilder<'f1, SetVcfCountLength<S>>where
S::VcfCountLength: IsUnset,
pub fn vcf_count_length(
self,
value: u8,
) -> UslpTransferFrameBuilder<'f1, SetVcfCountLength<S>>where
S::VcfCountLength: IsUnset,
Sourcepub fn maybe_vcf_count_length(
self,
value: Option<u8>,
) -> UslpTransferFrameBuilder<'f1, SetVcfCountLength<S>>where
S::VcfCountLength: IsUnset,
pub fn maybe_vcf_count_length(
self,
value: Option<u8>,
) -> UslpTransferFrameBuilder<'f1, SetVcfCountLength<S>>where
S::VcfCountLength: IsUnset,
Sourcepub fn vcf_count(
self,
value: u64,
) -> UslpTransferFrameBuilder<'f1, SetVcfCount<S>>where
S::VcfCount: IsUnset,
pub fn vcf_count(
self,
value: u64,
) -> UslpTransferFrameBuilder<'f1, SetVcfCount<S>>where
S::VcfCount: IsUnset,
Sourcepub fn maybe_vcf_count(
self,
value: Option<u64>,
) -> UslpTransferFrameBuilder<'f1, SetVcfCount<S>>where
S::VcfCount: IsUnset,
pub fn maybe_vcf_count(
self,
value: Option<u64>,
) -> UslpTransferFrameBuilder<'f1, SetVcfCount<S>>where
S::VcfCount: IsUnset,
Auto Trait Implementations§
impl<'f1, S> Freeze for UslpTransferFrameBuilder<'f1, S>
impl<'f1, S> RefUnwindSafe for UslpTransferFrameBuilder<'f1, S>
impl<'f1, S> Send for UslpTransferFrameBuilder<'f1, S>
impl<'f1, S> Sync for UslpTransferFrameBuilder<'f1, S>
impl<'f1, S> Unpin for UslpTransferFrameBuilder<'f1, S>
impl<'f1, S> UnsafeUnpin for UslpTransferFrameBuilder<'f1, S>
impl<'f1, S = Empty> !UnwindSafe for UslpTransferFrameBuilder<'f1, 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