pub struct CspPacketMut(/* private fields */);
Implementations§
Source§impl CspPacketMut
impl CspPacketMut
pub fn packet_data(&self) -> &[u8] ⓘ
pub fn whole_data(&self) -> &[u8; 256]
pub fn packet_length(&self) -> usize
pub fn inner(&self) -> *const csp_packet_s
pub fn whole_data_mut(&mut self) -> &mut [u8; 256]
pub fn set_data(&mut self, data: &[u8]) -> bool
pub fn inner_mut(&self) -> *mut csp_packet_s
Trait Implementations§
Source§impl From<CspPacketMut> for CspPacketRef
impl From<CspPacketMut> for CspPacketRef
Source§fn from(value: CspPacketMut) -> Self
fn from(value: CspPacketMut) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CspPacketMut
impl RefUnwindSafe for CspPacketMut
impl !Send for CspPacketMut
impl !Sync for CspPacketMut
impl Unpin for CspPacketMut
impl UnwindSafe for CspPacketMut
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