pub struct UExtension4(pub [u8; 4]);Expand description
UExtension4_t — 4-byte vendor-spezifischer Extension-Slot.
Spec §8.3.2: opaker 32-bit-Wert, Vendor entscheidet ueber Bedeutung;
Receiver propagiert den Wert per extensions-Feld in den
Receiver-State.
Tuple Fields§
§0: [u8; 4]Implementations§
Source§impl UExtension4
impl UExtension4
Sourcepub fn from_u32_be(v: u32) -> Self
pub fn from_u32_be(v: u32) -> Self
Konstruktor aus u32 (Big-Endian).
Sourcepub fn from_bytes(bytes: [u8; 4]) -> Self
pub fn from_bytes(bytes: [u8; 4]) -> Self
Roundtrip-Identitaet.
Trait Implementations§
Source§impl Clone for UExtension4
impl Clone for UExtension4
Source§fn clone(&self) -> UExtension4
fn clone(&self) -> UExtension4
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 moreSource§impl Debug for UExtension4
impl Debug for UExtension4
Source§impl Default for UExtension4
impl Default for UExtension4
Source§fn default() -> UExtension4
fn default() -> UExtension4
Returns the “default value” for a type. Read more
Source§impl Hash for UExtension4
impl Hash for UExtension4
Source§impl PartialEq for UExtension4
impl PartialEq for UExtension4
Source§fn eq(&self, other: &UExtension4) -> bool
fn eq(&self, other: &UExtension4) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for UExtension4
impl Eq for UExtension4
impl StructuralPartialEq for UExtension4
Auto Trait Implementations§
impl Freeze for UExtension4
impl RefUnwindSafe for UExtension4
impl Send for UExtension4
impl Sync for UExtension4
impl Unpin for UExtension4
impl UnsafeUnpin for UExtension4
impl UnwindSafe for UExtension4
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