pub struct SynchronousConnectionParameters_VendorCodingFormatWriter<S: MutStorage, ST: State = UncheckedState> { /* private fields */ }Implementations§
Source§impl<S: MutStorage> SynchronousConnectionParameters_VendorCodingFormatWriter<S, UncheckedState>
impl<S: MutStorage> SynchronousConnectionParameters_VendorCodingFormatWriter<S, UncheckedState>
Source§impl<S: MutStorage, ST: State> SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST>
impl<S: MutStorage, ST: State> SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST>
Sourcepub unsafe fn new_in_state(storage: S) -> Self
pub unsafe fn new_in_state(storage: S) -> Self
Constructs a writer in a specific typestate.
§Safety
The caller must ensure that storage satisfies the layout invariants for ST.
pub fn into_storage(self) -> S
Sourcepub fn into_view(
self,
) -> SynchronousConnectionParameters_VendorCodingFormat<S, ST>
pub fn into_view( self, ) -> SynchronousConnectionParameters_VendorCodingFormat<S, ST>
Converts the writer into an immutable view in the same typestate.
Sourcepub fn as_view(
&self,
) -> SynchronousConnectionParameters_VendorCodingFormat<S::Sliced<'_>, ST>
pub fn as_view( &self, ) -> SynchronousConnectionParameters_VendorCodingFormat<S::Sliced<'_>, ST>
Borrows the writer as an immutable view in the same typestate.
pub fn write_coding_format( self, val: CodingFormat, ) -> SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST::OnValidMutation>
pub fn write_company_id( self, val: <SizeSelector<16> as SmallestUInt>::T, ) -> SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST::OnValidMutation>
pub fn write_vendor_codec_id( self, val: <SizeSelector<16> as SmallestUInt>::T, ) -> SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST::OnValidMutation>
Trait Implementations§
Source§impl<S: MutStorage> CheckComplete for SynchronousConnectionParameters_VendorCodingFormatWriter<S, UncheckedState>
impl<S: MutStorage> CheckComplete for SynchronousConnectionParameters_VendorCodingFormatWriter<S, UncheckedState>
type Completed = SynchronousConnectionParameters_VendorCodingFormatWriter<S, CompleteState>
fn check_complete(self) -> Result<Self::Completed, Error>
Source§impl<S: MutStorage> CheckOk for SynchronousConnectionParameters_VendorCodingFormatWriter<S, UncheckedState>
impl<S: MutStorage> CheckOk for SynchronousConnectionParameters_VendorCodingFormatWriter<S, UncheckedState>
Source§impl<S: MutStorage> CheckOk for SynchronousConnectionParameters_VendorCodingFormatWriter<S, CompleteState>
impl<S: MutStorage> CheckOk for SynchronousConnectionParameters_VendorCodingFormatWriter<S, CompleteState>
Source§impl<S: MutStorage> CheckOk for SynchronousConnectionParameters_VendorCodingFormatWriter<S, OkState>
impl<S: MutStorage> CheckOk for SynchronousConnectionParameters_VendorCodingFormatWriter<S, OkState>
Source§impl<S: MutStorage, ST: State> View for SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST>
impl<S: MutStorage, ST: State> View for SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST>
Auto Trait Implementations§
impl<S, ST> Freeze for SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST>where
S: Freeze,
impl<S, ST> RefUnwindSafe for SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST>where
S: RefUnwindSafe,
ST: RefUnwindSafe,
impl<S, ST> Send for SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST>
impl<S, ST> Sync for SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST>
impl<S, ST> Unpin for SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST>
impl<S, ST> UnsafeUnpin for SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST>where
S: UnsafeUnpin,
impl<S, ST> UnwindSafe for SynchronousConnectionParameters_VendorCodingFormatWriter<S, ST>where
S: UnwindSafe,
ST: UnwindSafe,
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