pub struct LevinBucketCodec<C> { /* private fields */ }Expand description
The levin tokio-codec for decoding and encoding raw levin buckets
Implementations§
Trait Implementations§
Source§impl<C: Clone> Clone for LevinBucketCodec<C>
impl<C: Clone> Clone for LevinBucketCodec<C>
Source§fn clone(&self) -> LevinBucketCodec<C>
fn clone(&self) -> LevinBucketCodec<C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Debug> Debug for LevinBucketCodec<C>
impl<C: Debug> Debug for LevinBucketCodec<C>
Source§impl<C: LevinCommand + Debug> Decoder for LevinBucketCodec<C>
impl<C: LevinCommand + Debug> Decoder for LevinBucketCodec<C>
Source§type Error = BucketError
type Error = BucketError
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
§fn decode_eof(
&mut self,
buf: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>
A default method available to be called when there are no more bytes
available to be read from the underlying I/O. Read more
Source§impl<C> Default for LevinBucketCodec<C>
impl<C> Default for LevinBucketCodec<C>
Auto Trait Implementations§
impl<C> Freeze for LevinBucketCodec<C>where
C: Freeze,
impl<C> RefUnwindSafe for LevinBucketCodec<C>where
C: RefUnwindSafe,
impl<C> Send for LevinBucketCodec<C>where
C: Send,
impl<C> Sync for LevinBucketCodec<C>where
C: Sync,
impl<C> Unpin for LevinBucketCodec<C>where
C: Unpin,
impl<C> UnsafeUnpin for LevinBucketCodec<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for LevinBucketCodec<C>where
C: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.