pub enum FeaturedCode {
NoOp(NoOpCode),
}Variants§
NoOp(NoOpCode)
Trait Implementations§
Source§impl<T> Code<T> for FeaturedCode
impl<T> Code<T> for FeaturedCode
type Item = Bytes
fn code(&mut self, item: T) -> Result<Option<Self::Item>>
fn code_eof(&mut self) -> Result<Option<Self::Item>>
Source§fn is_end_stream(&self, body: &impl Body) -> bool
fn is_end_stream(&self, body: &impl Body) -> bool
A helper method for overriding associated input body’s end_stream state.
by default it returns value the same as
Body::is_end_stream’s default value.
in other word the default prediction is (de)compress can not hint if body has ended.Auto Trait Implementations§
impl Freeze for FeaturedCode
impl RefUnwindSafe for FeaturedCode
impl Send for FeaturedCode
impl Sync for FeaturedCode
impl Unpin for FeaturedCode
impl UnsafeUnpin for FeaturedCode
impl UnwindSafe for FeaturedCode
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