pub struct VendorId(pub [u8; 3]);Expand description
A 24-bit MA-L/OUI identifying a device’s vendor or manufacturer.
These IDs are obtained from the IEEE, and a current list of OUIs can be queried from their website. A full list is also available as plain text or CSV.
Tuple Fields§
§0: [u8; 3]Implementations§
Source§impl VendorId
impl VendorId
Sourcepub fn try_from_sys(vendor_id: SysVendorId) -> Result<Option<VendorId>>
pub fn try_from_sys(vendor_id: SysVendorId) -> Result<Option<VendorId>>
Convert a linux_cec_sys::VendorId into a VendorId. Since linux_cec_sys::VendorId is just
a convenience type around u32, not all values are valid, so this conversion can fail: the
reserved value 0xFFFFFFFF is treated as Ok(None), and all over values outside of the valid range
return Error::InvalidData.
Trait Implementations§
Source§impl From<VendorId> for VendorId
impl From<VendorId> for VendorId
Source§fn from(val: VendorId) -> SysVendorId
fn from(val: VendorId) -> SysVendorId
Converts to this type from the input type.
Source§impl OperandEncodable for VendorId
impl OperandEncodable for VendorId
impl Copy for VendorId
impl Eq for VendorId
impl StructuralPartialEq for VendorId
Auto Trait Implementations§
impl Freeze for VendorId
impl RefUnwindSafe for VendorId
impl Send for VendorId
impl Sync for VendorId
impl Unpin for VendorId
impl UnsafeUnpin for VendorId
impl UnwindSafe for VendorId
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