pub struct Type<'s> {
pub source: &'s [u8],
pub offset: usize,
}
Expand description
A resource record TYPE (RFC 6895 § 3.1).
§Examples
use nonymous::view::{Type, View};
let source = b"\x13\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
let (r#type, rest) = Type::view(source, 0..source.len())?;
Fields§
§source: &'s [u8]
§offset: usize
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for Type<'s>
impl<'s> RefUnwindSafe for Type<'s>
impl<'s> Send for Type<'s>
impl<'s> Sync for Type<'s>
impl<'s> Unpin for Type<'s>
impl<'s> UnwindSafe for Type<'s>
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