Struct cuprate_levin::codec::LevinBucketCodec
source · 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 copy of the value. Read more
1.0.0 · 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>
§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
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> 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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§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.