pub struct FieldSection(/* private fields */);Implementations§
Source§impl FieldSection
impl FieldSection
pub fn is_empty(&self) -> bool
Sourcepub fn get(&self, n: &[u8]) -> Option<&[u8]>
pub fn get(&self, n: &[u8]) -> Option<&[u8]>
Gets the value from the first instance of the field.
pub fn put(&mut self, name: impl Into<Vec<u8>>, value: impl Into<Vec<u8>>)
pub fn iter(&self) -> impl Iterator<Item = &Field>
pub fn fields(&self) -> &[Field]
pub fn is_chunked(&self) -> bool
pub fn read_bhttp<T, R>(mode: Mode, r: &mut T) -> Result<Self, Error>
pub fn write_bhttp(&self, mode: Mode, w: &mut impl Write) -> Result<(), Error>
Trait Implementations§
Source§impl Default for FieldSection
impl Default for FieldSection
Source§fn default() -> FieldSection
fn default() -> FieldSection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FieldSection
impl RefUnwindSafe for FieldSection
impl Send for FieldSection
impl Sync for FieldSection
impl Unpin for FieldSection
impl UnwindSafe for FieldSection
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