pub struct HttpResolveResponseWire;Trait Implementations§
Source§impl Wire for HttpResolveResponseWire
impl Wire for HttpResolveResponseWire
Source§const FIXED_SIZE: Option<usize>
const FIXED_SIZE: Option<usize>
The encoded size if every value of this type has the same size.
Source§const MIN_SIZE: usize
const MIN_SIZE: usize
A lower bound on the encoded size, used to reject impossible element counts early.
Source§type Ref<'a> = HttpResolveResponseRef<'a>
type Ref<'a> = HttpResolveResponseRef<'a>
The borrowed form returned by accessors. Cheap to copy.
Source§type Owned = HttpResolveResponse
type Owned = HttpResolveResponse
The owned form used for building and encoding values.
Source§type Root = [u32; 0]
type Root = [u32; 0]
Lifetime-free state a root
View keeps to rebuild its Ref without
walking the input again, such as a struct’s field offsets.Source§fn verify<'a>(
v: &mut Verifier<'a>,
) -> Result<HttpResolveResponseRef<'a>, DecodeError>
fn verify<'a>( v: &mut Verifier<'a>, ) -> Result<HttpResolveResponseRef<'a>, DecodeError>
Checks one value at the verifier’s position and returns its borrowed form.
Source§fn read<'a>(r: &mut Reader<'a>) -> HttpResolveResponseRef<'a>
fn read<'a>(r: &mut Reader<'a>) -> HttpResolveResponseRef<'a>
Reads one verified value and advances past it.
Source§fn from_root(r: Reader<'_>, offsets: [u32; 0]) -> HttpResolveResponseRef<'_>
fn from_root(r: Reader<'_>, offsets: [u32; 0]) -> HttpResolveResponseRef<'_>
Rebuilds the borrowed form of a root value spanning exactly
r.Source§fn read_owned(r: &mut Reader<'_>) -> HttpResolveResponse
fn read_owned(r: &mut Reader<'_>) -> HttpResolveResponse
Reads one verified value as owned, sharing
str and data bytes with the input.Source§fn verify_owned(
v: &mut Verifier<'_>,
) -> Result<HttpResolveResponse, DecodeError>
fn verify_owned( v: &mut Verifier<'_>, ) -> Result<HttpResolveResponse, DecodeError>
Checks one value at the verifier’s position and returns it as owned, sharing
str and
data bytes with the input. Read morefn encoded_len(value: &HttpResolveResponse) -> usize
fn encode<S: Sink>(value: &HttpResolveResponse, out: &mut S)
fn ref_encoded_len(value: HttpResolveResponseRef<'_>) -> usize
Source§fn encode_ref<S: Sink>(value: HttpResolveResponseRef<'_>, out: &mut S)
fn encode_ref<S: Sink>(value: HttpResolveResponseRef<'_>, out: &mut S)
Encodes a borrowed value. Verified input is canonical, so this reproduces the input bytes.
Auto Trait Implementations§
impl Freeze for HttpResolveResponseWire
impl RefUnwindSafe for HttpResolveResponseWire
impl Send for HttpResolveResponseWire
impl Sync for HttpResolveResponseWire
impl Unpin for HttpResolveResponseWire
impl UnsafeUnpin for HttpResolveResponseWire
impl UnwindSafe for HttpResolveResponseWire
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