pub struct Bytes<S> { /* private fields */ }Expand description
Bytes with a statically selected storage policy and no wrapper overhead.
Implementations§
Source§impl<S> Bytes<S>where
Bytes<S>: RetainBytes,
impl<S> Bytes<S>where
Bytes<S>: RetainBytes,
pub fn into_retained(self) -> Bytes<Retained>
Trait Implementations§
impl<S> Copy for Bytes<S>where
S: Copy,
impl<S> Eq for Bytes<S>where
S: Storage,
Source§impl<'req> IntoBody<'req> for Bytes<Borrowed<'req>>
impl<'req> IntoBody<'req> for Bytes<Borrowed<'req>>
fn into_response_body(self) -> BodyInner<'req>
Source§impl<'req> IntoBody<'req> for Bytes<Retained>
impl<'req> IntoBody<'req> for Bytes<Retained>
fn into_response_body(self) -> BodyInner<'req>
Source§impl<'req> IntoHeaderValue<'req> for Bytes<Borrowed<'req>>
impl<'req> IntoHeaderValue<'req> for Bytes<Borrowed<'req>>
fn into_header_value(self) -> HeaderValueInner<'req>
Source§impl<'req> IntoHeaderValue<'req> for Bytes<Retained>
impl<'req> IntoHeaderValue<'req> for Bytes<Retained>
fn into_header_value(self) -> HeaderValueInner<'req>
Source§impl RetainBytes for Bytes<Borrowed<'_>>
impl RetainBytes for Bytes<Borrowed<'_>>
fn into_retained(self) -> Bytes<Retained>
Source§impl RetainBytes for Bytes<Leased>
impl RetainBytes for Bytes<Leased>
fn into_retained(self) -> Bytes<Retained>
fn into_retained(self) -> Bytes<Retained>
Source§impl RetainBytes for Bytes<Retained>
impl RetainBytes for Bytes<Retained>
fn into_retained(self) -> Bytes<Retained>
Auto Trait Implementations§
impl<S> Freeze for Bytes<S>where
S: Freeze,
impl<S> RefUnwindSafe for Bytes<S>where
S: RefUnwindSafe,
impl<S> Send for Bytes<S>where
S: Send,
impl<S> Sync for Bytes<S>where
S: Sync,
impl<S> Unpin for Bytes<S>where
S: Unpin,
impl<S> UnsafeUnpin for Bytes<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Bytes<S>where
S: UnwindSafe,
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