Struct ContentTransferEncoding
pub struct ContentTransferEncoding(/* private fields */);Expand description
Lightweight Content-Transfer-Encoding header wrapper.
Implementations§
§impl ContentTransferEncoding
impl ContentTransferEncoding
pub fn new(
value: impl AsRef<str>,
) -> Result<ContentTransferEncoding, HeaderParseError>
pub fn new( value: impl AsRef<str>, ) -> Result<ContentTransferEncoding, HeaderParseError>
Creates a typed header wrapper.
pub const fn value(&self) -> &HeaderValue
pub const fn value(&self) -> &HeaderValue
Returns the header value.
pub fn field(&self) -> HeaderField
pub fn field(&self) -> HeaderField
Converts this wrapper into a header field.
Trait Implementations§
§impl Clone for ContentTransferEncoding
impl Clone for ContentTransferEncoding
§fn clone(&self) -> ContentTransferEncoding
fn clone(&self) -> ContentTransferEncoding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ContentTransferEncoding
impl Debug for ContentTransferEncoding
§impl Display for ContentTransferEncoding
impl Display for ContentTransferEncoding
§impl Hash for ContentTransferEncoding
impl Hash for ContentTransferEncoding
§impl Ord for ContentTransferEncoding
impl Ord for ContentTransferEncoding
§fn cmp(&self, other: &ContentTransferEncoding) -> Ordering
fn cmp(&self, other: &ContentTransferEncoding) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for ContentTransferEncoding
impl PartialEq for ContentTransferEncoding
§impl PartialOrd for ContentTransferEncoding
impl PartialOrd for ContentTransferEncoding
impl Eq for ContentTransferEncoding
impl StructuralPartialEq for ContentTransferEncoding
Auto Trait Implementations§
impl Freeze for ContentTransferEncoding
impl RefUnwindSafe for ContentTransferEncoding
impl Send for ContentTransferEncoding
impl Sync for ContentTransferEncoding
impl Unpin for ContentTransferEncoding
impl UnsafeUnpin for ContentTransferEncoding
impl UnwindSafe for ContentTransferEncoding
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