#[non_exhaustive]pub struct DefaultStreamEncoder {}Available on crate feature
default_encoders only.Expand description
DefaultStreamEncoder is a default implementation of the StreamEncoder trait.
It encodes a log::Record into a vector of tuples, where each tuple contains a field name from the Record and the
corresponding value as a byte vector. If a field in the Record is None, the byte vector is empty.
You can use these default encoders when you don’t need to customize the encoding process.
If you need to customize the encoding, you can implement the PubSubEncoder and StreamEncoder traits yourself.
Implementations§
Trait Implementations§
Source§impl Debug for DefaultStreamEncoder
impl Debug for DefaultStreamEncoder
Auto Trait Implementations§
impl Freeze for DefaultStreamEncoder
impl RefUnwindSafe for DefaultStreamEncoder
impl Send for DefaultStreamEncoder
impl Sync for DefaultStreamEncoder
impl Unpin for DefaultStreamEncoder
impl UnwindSafe for DefaultStreamEncoder
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