pub struct OwnedTrailer {
pub token: OwnedToken,
pub values: Vec<String>,
}
Expand description
A version of the Trailer<’a> which owns it’s token and values. Useful for when you need to carry trailers around in a long lived data structure.
Fields§
§token: OwnedToken
§values: Vec<String>
Trait Implementations§
Source§impl Debug for OwnedTrailer
impl Debug for OwnedTrailer
Source§impl<'a> From<&'a OwnedTrailer> for Trailer<'a>
impl<'a> From<&'a OwnedTrailer> for Trailer<'a>
Source§fn from(t: &'a OwnedTrailer) -> Self
fn from(t: &'a OwnedTrailer) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&Trailer<'a>> for OwnedTrailer
impl<'a> From<&Trailer<'a>> for OwnedTrailer
Auto Trait Implementations§
impl Freeze for OwnedTrailer
impl RefUnwindSafe for OwnedTrailer
impl Send for OwnedTrailer
impl Sync for OwnedTrailer
impl Unpin for OwnedTrailer
impl UnwindSafe for OwnedTrailer
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