pub struct Fields { /* private fields */ }Expand description
Borrow-free state for fields that determine message framing.
Implementations§
Source§impl Fields
impl Fields
pub fn try_length(self, value: &[u8]) -> Result<Self, Error>
Sourcepub fn try_set(self, length: usize) -> Result<Self, Error>
pub fn try_set(self, length: usize) -> Result<Self, Error>
Commits a Content-Length already parsed by a scanner’s specialized integer fast path.
pub fn try_coding(self, value: &[u8]) -> Result<Self, Error>
Sourcepub fn try_append(self, value: Transfer) -> Result<Self, Error>
pub fn try_append(self, value: Transfer) -> Result<Self, Error>
Commits one field value already validated by a scanner’s specialized Transfer-Encoding path.
pub const fn length(self) -> Option<usize>
pub const fn has_coding(self) -> bool
pub const fn is_chunked(self) -> bool
pub const fn finish(self) -> Message
Trait Implementations§
impl Copy for Fields
impl Eq for Fields
impl StructuralPartialEq for Fields
Auto Trait Implementations§
impl Freeze for Fields
impl RefUnwindSafe for Fields
impl Send for Fields
impl Sync for Fields
impl Unpin for Fields
impl UnsafeUnpin for Fields
impl UnwindSafe for Fields
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