pub struct VendorCap<'a>(/* private fields */);
Expand description
Vendor specific capability
Implements Deref
with Target=BaseCap
, allowing the use of
BaseCap
methods to read/write raw capability data.
Implementations§
Methods from Deref<Target = BaseCap<'a>>§
Sourcepub fn read8(&self, offset: u16) -> u8
pub fn read8(&self, offset: u16) -> u8
Reads an 8-bit value relative to the base of this capability.
Sourcepub fn write8(&self, offset: u16, val: u8)
pub fn write8(&self, offset: u16, val: u8)
Writes an 8-bit value relative to the base of this capability.
Sourcepub fn read16(&self, offset: u16) -> u16
pub fn read16(&self, offset: u16) -> u16
Reads a 16-bit value relative to the base of this capability.
Sourcepub fn write16(&self, offset: u16, val: u16)
pub fn write16(&self, offset: u16, val: u16)
Writes a 16-bit value relative to the base of this capability.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for VendorCap<'a>
impl<'a> RefUnwindSafe for VendorCap<'a>
impl<'a> Send for VendorCap<'a>
impl<'a> Sync for VendorCap<'a>
impl<'a> Unpin for VendorCap<'a>
impl<'a> UnwindSafe for VendorCap<'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