pub struct CommandPacketMut<S: MutStorage> { /* private fields */ }Implementations§
Source§impl<S: MutStorage> CommandPacketMut<S>
impl<S: MutStorage> CommandPacketMut<S>
pub fn new(storage: S) -> Self
pub fn into_writer(self) -> CommandPacketWriter<S, UncheckedState>
Sourcepub fn as_view(&self) -> CommandPacket<S::Sliced<'_>, UncheckedState>
pub fn as_view(&self) -> CommandPacket<S::Sliced<'_>, UncheckedState>
Borrows the mutable view as an immutable view in UncheckedState.
pub fn hdr_size(&mut self) -> VirtualField<u64>
pub fn header(&mut self) -> CommandHeaderMut<S::SlicedMut<'_>>
pub fn length(&mut self) -> VirtualField<u64>
pub fn payload_mut( &mut self, ) -> Result<CommandPacket_Payload_ArrayViewMut<S::SlicedMut<'_>>, Error>
Trait Implementations§
Source§impl<S: MutStorage> IntoWriter for CommandPacketMut<S>
impl<S: MutStorage> IntoWriter for CommandPacketMut<S>
type Writer = CommandPacketWriter<S>
fn into_writer(self) -> Self::Writer
Source§impl<S: MutStorage> View for CommandPacketMut<S>
impl<S: MutStorage> View for CommandPacketMut<S>
Auto Trait Implementations§
impl<S> Freeze for CommandPacketMut<S>where
S: Freeze,
impl<S> RefUnwindSafe for CommandPacketMut<S>where
S: RefUnwindSafe,
impl<S> Send for CommandPacketMut<S>where
S: Send,
impl<S> Sync for CommandPacketMut<S>where
S: Sync,
impl<S> Unpin for CommandPacketMut<S>where
S: Unpin,
impl<S> UnsafeUnpin for CommandPacketMut<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for CommandPacketMut<S>where
S: 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