pub enum AttrOption<'a> {
Name(&'a CStr),
Changed(()),
Type(u8),
Data(&'a [u8]),
Removed(()),
PortIfindex(u32),
ArrayIndex(u32),
}Available on crate feature
team only.Variants§
Name(&'a CStr)
Changed(())
Type(u8)
Data(&'a [u8])
Removed(())
PortIfindex(u32)
for per-port options
ArrayIndex(u32)
for array options
Implementations§
Source§impl AttrOption<'_>
impl AttrOption<'_>
pub fn new<'a>(buf: &'a [u8]) -> IterableAttrOption<'a> ⓘ
Trait Implementations§
Source§impl<'a> Clone for AttrOption<'a>
impl<'a> Clone for AttrOption<'a>
Source§fn clone(&self) -> AttrOption<'a>
fn clone(&self) -> AttrOption<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for AttrOption<'a>
impl<'a> RefUnwindSafe for AttrOption<'a>
impl<'a> Send for AttrOption<'a>
impl<'a> Sync for AttrOption<'a>
impl<'a> Unpin for AttrOption<'a>
impl<'a> UnsafeUnpin for AttrOption<'a>
impl<'a> UnwindSafe for AttrOption<'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