pub enum BodyEncodeState {
    Fixed {
        _compression_state: (),
        remaining: u64,
    },
    Chunked(Chunked),
    Failed,
    Closed,
}Variants§
Implementations§
Source§impl BodyEncodeState
 
impl BodyEncodeState
pub fn from_headers(headers: &HeaderMap) -> Result<Self>
pub fn new(length: Option<u64>) -> Self
pub fn into_async_write<IO: AsyncWrite + Unpin>( self, transport: IO, ) -> BodyEncode<IO>
pub fn poll_write<IO: AsyncWrite + Unpin>( &mut self, transport: IO, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
Auto Trait Implementations§
impl Freeze for BodyEncodeState
impl RefUnwindSafe for BodyEncodeState
impl Send for BodyEncodeState
impl Sync for BodyEncodeState
impl Unpin for BodyEncodeState
impl UnwindSafe for BodyEncodeState
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