pub enum Cap<'a> {
Protocol(&'a str),
Type(&'a str),
Model(&'a str),
Commands(Vec<u8>),
Whql(u8),
MccsVersion(u8, u8),
Vcp(Vec<Vcp>),
VcpNames(Vec<VcpName<'a>>),
Edid(&'a [u8]),
Vdif(&'a [u8]),
Unknown(Value<'a>),
}Expand description
Parsed display capabilities string entry
Variants§
Protocol(&'a str)
Type(&'a str)
Model(&'a str)
Commands(Vec<u8>)
Whql(u8)
MccsVersion(u8, u8)
Vcp(Vec<Vcp>)
VcpNames(Vec<VcpName<'a>>)
Edid(&'a [u8])
Vdif(&'a [u8])
Unknown(Value<'a>)
Implementations§
Source§impl<'i> Cap<'i>
impl<'i> Cap<'i>
pub fn parse_entries( entries: ValueParser<'i>, ) -> impl Iterator<Item = Result<Cap<'i>>> + 'i
pub fn parse_entry(value: Value<'i>) -> Result<Cap<'i>, Error<&'i [u8]>>
pub fn parse_data(tag: &'i str, i: &'i [u8]) -> Cap<'i>
pub fn parse_string( tag: &'i str, i: &'i [u8], ) -> Result<Cap<'i>, Error<&'i [u8]>>
Trait Implementations§
impl<'a> Eq for Cap<'a>
impl<'a> StructuralPartialEq for Cap<'a>
Auto Trait Implementations§
impl<'a> Freeze for Cap<'a>
impl<'a> RefUnwindSafe for Cap<'a>
impl<'a> Send for Cap<'a>
impl<'a> Sync for Cap<'a>
impl<'a> Unpin for Cap<'a>
impl<'a> UnwindSafe for Cap<'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