pub struct Message { /* private fields */ }Implementations§
Source§impl Message
impl Message
pub fn try_length(self, length: usize) -> Result<Self, Error>
pub fn try_coding(self, value: &[u8]) -> Result<Self, Error>
pub fn try_append(self, value: Transfer) -> Result<Self, Error>
pub fn with_expect(self, value: &[u8]) -> Self
pub const fn length(self) -> Option<usize>
pub const fn has_coding(self) -> bool
pub const fn is_chunked(self) -> bool
Sourcepub const fn has_other_transfer_coding(self) -> bool
pub const fn has_other_transfer_coding(self) -> bool
Whether transfer codings remain after removing the final chunked framing.
pub const fn coding(self) -> Coding
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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