pub struct Singleton;Expand description
A field that appears at most once, such as Content-Length or Content-Type: a second instance is an error, even with the same value.
Trait Implementations§
impl Combination for Singleton
impl Copy for Singleton
impl Eq for Singleton
impl SingleValue for Singleton
impl StructuralPartialEq for Singleton
Auto Trait Implementations§
impl Forget for Singleton
impl Freeze for Singleton
impl RefUnwindSafe for Singleton
impl Send for Singleton
impl Sync for Singleton
impl Unpin for Singleton
impl UnsafeUnpin for Singleton
impl UnwindSafe for Singleton
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