pub struct CfgPrtI2cRef<'a>(/* private fields */);
Expand description
Port Configuration for I2C Contains a reference to an underlying buffer, contains accessor methods to retrieve data.
Implementations§
Source§impl<'a> CfgPrtI2cRef<'a>
impl<'a> CfgPrtI2cRef<'a>
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn to_owned(&self) -> CfgPrtI2cOwned
Sourcepub fn portid_raw(&self) -> u8
pub fn portid_raw(&self) -> u8
Sourcepub fn in_proto_mask_raw(&self) -> u16
pub fn in_proto_mask_raw(&self) -> u16
Sourcepub fn in_proto_mask(&self) -> InProtoMask
pub fn in_proto_mask(&self) -> InProtoMask
Sourcepub fn out_proto_mask_raw(&self) -> u16
pub fn out_proto_mask_raw(&self) -> u16
Sourcepub fn out_proto_mask(&self) -> OutProtoMask
pub fn out_proto_mask(&self) -> OutProtoMask
Trait Implementations§
Source§impl Debug for CfgPrtI2cRef<'_>
impl Debug for CfgPrtI2cRef<'_>
Source§impl<'a> From<&CfgPrtI2cRef<'a>> for CfgPrtI2cOwned
impl<'a> From<&CfgPrtI2cRef<'a>> for CfgPrtI2cOwned
Source§fn from(packet: &CfgPrtI2cRef<'a>) -> Self
fn from(packet: &CfgPrtI2cRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CfgPrtI2cRef<'a>> for CfgPrtI2cOwned
impl<'a> From<CfgPrtI2cRef<'a>> for CfgPrtI2cOwned
Source§fn from(packet: CfgPrtI2cRef<'a>) -> Self
fn from(packet: CfgPrtI2cRef<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for CfgPrtI2cRef<'a>
impl<'a> RefUnwindSafe for CfgPrtI2cRef<'a>
impl<'a> Send for CfgPrtI2cRef<'a>
impl<'a> Sync for CfgPrtI2cRef<'a>
impl<'a> Unpin for CfgPrtI2cRef<'a>
impl<'a> UnwindSafe for CfgPrtI2cRef<'a>
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