pub struct RawAttribute {
pub flags: u8,
pub type_code: u8,
pub data: Bytes,
}Expand description
Raw attribute preserved for pass-through (RFC 4271 §5).
On re-advertisement, the Partial bit (0x20) is OR’d into flags.
All other flags and bytes are preserved unchanged.
Fields§
§flags: u8Attribute flags byte (optional, transitive, partial, extended-length).
type_code: u8Attribute type code.
data: BytesRaw attribute value bytes.
Trait Implementations§
Source§impl Clone for RawAttribute
impl Clone for RawAttribute
Source§fn clone(&self) -> RawAttribute
fn clone(&self) -> RawAttribute
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawAttribute
impl Debug for RawAttribute
Source§impl Hash for RawAttribute
impl Hash for RawAttribute
Source§impl PartialEq for RawAttribute
impl PartialEq for RawAttribute
impl Eq for RawAttribute
impl StructuralPartialEq for RawAttribute
Auto Trait Implementations§
impl !Freeze for RawAttribute
impl RefUnwindSafe for RawAttribute
impl Send for RawAttribute
impl Sync for RawAttribute
impl Unpin for RawAttribute
impl UnsafeUnpin for RawAttribute
impl UnwindSafe for RawAttribute
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