pub struct ToClientBodyWire;Trait Implementations§
Source§impl Wire for ToClientBodyWire
impl Wire for ToClientBodyWire
Source§const FIXED_SIZE: Option<usize> = ::std::option::Option::None
const FIXED_SIZE: Option<usize> = ::std::option::Option::None
The encoded size if every value of this type has the same size.
Source§const MIN_SIZE: usize = 1
const MIN_SIZE: usize = 1
A lower bound on the encoded size, used to reject impossible element counts early.
Source§type Ref<'a> = ToClientBodyRef<'a>
type Ref<'a> = ToClientBodyRef<'a>
The borrowed form returned by accessors. Cheap to copy.
Source§type Owned = ToClientBody
type Owned = ToClientBody
The owned form used for building and encoding values.
Source§type Root = ()
type Root = ()
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<ToClientBodyRef<'a>, DecodeError>
fn verify<'a>(v: &mut Verifier<'a>) -> Result<ToClientBodyRef<'a>, DecodeError>
Checks one value at the verifier’s position and returns its borrowed form.
Source§fn read<'a>(r: &mut Reader<'a>) -> ToClientBodyRef<'a>
fn read<'a>(r: &mut Reader<'a>) -> ToClientBodyRef<'a>
Reads one verified value and advances past it.
Source§fn read_span(r: Reader<'_>) -> ToClientBodyRef<'_>
fn read_span(r: Reader<'_>) -> ToClientBodyRef<'_>
Reads a verified value that spans exactly the reader. Types whose end is otherwise found
by walking their contents, such as lists, use the known end instead.
Source§fn root(_: &ToClientBodyRef<'_>)
fn root(_: &ToClientBodyRef<'_>)
Extracts the state a root view keeps.
Source§fn from_root(r: Reader<'_>, _: ()) -> ToClientBodyRef<'_>
fn from_root(r: Reader<'_>, _: ()) -> ToClientBodyRef<'_>
Rebuilds the borrowed form of a root value spanning exactly
r.Source§fn read_owned(r: &mut Reader<'_>) -> ToClientBody
fn read_owned(r: &mut Reader<'_>) -> ToClientBody
Reads one verified value as owned, sharing
str and data bytes with the input.Source§fn verify_owned(v: &mut Verifier<'_>) -> Result<ToClientBody, DecodeError>
fn verify_owned(v: &mut Verifier<'_>) -> Result<ToClientBody, 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: &ToClientBody) -> usize
fn encode<S: Sink>(value: &ToClientBody, out: &mut S)
fn ref_encoded_len(value: ToClientBodyRef<'_>) -> usize
Source§fn encode_ref<S: Sink>(value: ToClientBodyRef<'_>, out: &mut S)
fn encode_ref<S: Sink>(value: ToClientBodyRef<'_>, out: &mut S)
Encodes a borrowed value. Verified input is canonical, so this reproduces the input bytes.
Auto Trait Implementations§
impl Freeze for ToClientBodyWire
impl RefUnwindSafe for ToClientBodyWire
impl Send for ToClientBodyWire
impl Sync for ToClientBodyWire
impl Unpin for ToClientBodyWire
impl UnsafeUnpin for ToClientBodyWire
impl UnwindSafe for ToClientBodyWire
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