pub struct ExtensionValue<'a, V> { /* private fields */ }Expand description
One structural extension and the caller’s interpretation of its octets.
Implementations§
Source§impl<'a, V> ExtensionValue<'a, V>
impl<'a, V> ExtensionValue<'a, V>
Sourcepub fn header(&self) -> ExtensionHeader<'a>
pub fn header(&self) -> ExtensionHeader<'a>
Scalar original header, including readable structural faults.
Sourcepub fn trailing_span(&self) -> Option<Span>
pub fn trailing_span(&self) -> Option<Span>
Original remaining range after extnValue, without interpreting it.
Sourcepub fn into_value(self) -> V
pub fn into_value(self) -> V
Moves the decoded value, preserving any owned allocation charge.
Trait Implementations§
Auto Trait Implementations§
impl<'a, V> Freeze for ExtensionValue<'a, V>where
V: Freeze,
impl<'a, V> RefUnwindSafe for ExtensionValue<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for ExtensionValue<'a, V>where
V: Send,
impl<'a, V> Sync for ExtensionValue<'a, V>where
V: Sync,
impl<'a, V> Unpin for ExtensionValue<'a, V>where
V: Unpin,
impl<'a, V> UnsafeUnpin for ExtensionValue<'a, V>where
V: UnsafeUnpin,
impl<'a, V> UnwindSafe for ExtensionValue<'a, V>where
V: UnwindSafe,
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