pub struct ToServerRef<'a> { /* private fields */ }Expand description
Borrowed view of ToServer that reads fields in place.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ToServerRef<'a>
impl<'a> Clone for ToServerRef<'a>
impl<'a> Copy for ToServerRef<'a>
Source§impl Debug for ToServerRef<'_>
impl Debug for ToServerRef<'_>
Source§impl Encode for ToServerRef<'_>
impl Encode for ToServerRef<'_>
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
The exact encoded length, computed without encoding.
fn encode<S: Sink>(&self, out: &mut S)
fn encode_to_vec(&self) -> Vec<u8> ⓘ
fn encode_to_bytes(&self) -> Bytes
Source§fn encode_to_slice(&self, out: &mut [u8]) -> Result<usize, EncodeError>
fn encode_to_slice(&self, out: &mut [u8]) -> Result<usize, EncodeError>
Encodes into the front of
out and returns the number of bytes written. Checks the length
first instead of panicking when out is too short.Source§impl PartialEq for ToServerRef<'_>
Encodings are canonical, so equal values have equal bytes, except for maps whose
pairs appear in a different order.
impl PartialEq for ToServerRef<'_>
Encodings are canonical, so equal values have equal bytes, except for maps whose pairs appear in a different order.
Auto Trait Implementations§
impl<'a> Freeze for ToServerRef<'a>
impl<'a> RefUnwindSafe for ToServerRef<'a>
impl<'a> Send for ToServerRef<'a>
impl<'a> Sync for ToServerRef<'a>
impl<'a> Unpin for ToServerRef<'a>
impl<'a> UnsafeUnpin for ToServerRef<'a>
impl<'a> UnwindSafe for ToServerRef<'a>
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