pub enum AttrValueForSend {
U8(u8),
U16(u16),
U32(u32),
Bytes(Vec<u8>),
String(String),
}Expand description
Represents the possible types of values that can be sent as netlink attributes to the BATMAN-adv kernel module.
This enum is used when constructing generic netlink messages for BATMAN-adv. Each variant corresponds to a different type of payload that the kernel expects.
Variants§
U8(u8)
8-bit unsigned integer attribute.
U16(u16)
16-bit unsigned integer attribute.
U32(u32)
32-bit unsigned integer attribute.
Bytes(Vec<u8>)
Raw bytes attribute.
String(String)
UTF-8 string attribute.
Trait Implementations§
Source§impl Clone for AttrValueForSend
impl Clone for AttrValueForSend
Source§fn clone(&self) -> AttrValueForSend
fn clone(&self) -> AttrValueForSend
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 Freeze for AttrValueForSend
impl RefUnwindSafe for AttrValueForSend
impl Send for AttrValueForSend
impl Sync for AttrValueForSend
impl Unpin for AttrValueForSend
impl UnsafeUnpin for AttrValueForSend
impl UnwindSafe for AttrValueForSend
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