pub enum ToClientBodyRef<'a> {
Init(InitRef<'a>),
Error(ErrorRef<'a>),
ActionResponse(ActionResponseRef<'a>),
Event(EventRef<'a>),
}Expand description
Borrowed view of ToClientBody.
Variants§
Trait Implementations§
Source§impl<'a> Clone for ToClientBodyRef<'a>
impl<'a> Clone for ToClientBodyRef<'a>
impl<'a> Copy for ToClientBodyRef<'a>
Source§impl<'a> Debug for ToClientBodyRef<'a>
impl<'a> Debug for ToClientBodyRef<'a>
Source§impl Encode for ToClientBodyRef<'_>
impl Encode for ToClientBodyRef<'_>
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<'a> PartialEq for ToClientBodyRef<'a>
impl<'a> PartialEq for ToClientBodyRef<'a>
impl<'a> StructuralPartialEq for ToClientBodyRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ToClientBodyRef<'a>
impl<'a> RefUnwindSafe for ToClientBodyRef<'a>
impl<'a> Send for ToClientBodyRef<'a>
impl<'a> Sync for ToClientBodyRef<'a>
impl<'a> Unpin for ToClientBodyRef<'a>
impl<'a> UnsafeUnpin for ToClientBodyRef<'a>
impl<'a> UnwindSafe for ToClientBodyRef<'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