pub struct EventRef<'a> { /* private fields */ }Expand description
Borrowed view of Event that reads fields in place.
Implementations§
Trait Implementations§
impl<'a> Copy for EventRef<'a>
Source§impl Encode for EventRef<'_>
impl Encode for EventRef<'_>
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.Auto Trait Implementations§
impl<'a> Freeze for EventRef<'a>
impl<'a> RefUnwindSafe for EventRef<'a>
impl<'a> Send for EventRef<'a>
impl<'a> Sync for EventRef<'a>
impl<'a> Unpin for EventRef<'a>
impl<'a> UnsafeUnpin for EventRef<'a>
impl<'a> UnwindSafe for EventRef<'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