pub struct EncodeWriter<W, C, P> { /* private fields */ }Expand description
Wraps a Writer<Payload> and encodes typed events using an EventCodec<P>.
Implementations§
Source§impl<W, C, P> EncodeWriter<W, C, P>where
C: EventCodec<P>,
impl<W, C, P> EncodeWriter<W, C, P>where
C: EventCodec<P>,
Source§impl<W, C, P> EncodeWriter<W, PayloadEventCodec<C>, P>where
C: PayloadCodec<P>,
impl<W, C, P> EncodeWriter<W, PayloadEventCodec<C>, P>where
C: PayloadCodec<P>,
pub fn from_payload_codec(inner: W, codec: C) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<W, C, P> Freeze for EncodeWriter<W, C, P>
impl<W, C, P> RefUnwindSafe for EncodeWriter<W, C, P>
impl<W, C, P> Send for EncodeWriter<W, C, P>
impl<W, C, P> Sync for EncodeWriter<W, C, P>
impl<W, C, P> Unpin for EncodeWriter<W, C, P>
impl<W, C, P> UnsafeUnpin for EncodeWriter<W, C, P>where
W: UnsafeUnpin,
C: UnsafeUnpin,
impl<W, C, P> UnwindSafe for EncodeWriter<W, C, P>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more