pub struct Bytes(_);Implementations
sourceimpl Bytes
impl Bytes
sourcepub fn into_inner(self) -> Vec<u8>
pub fn into_inner(self) -> Vec<u8>
Consumes Bytes and returns the inner Vec<u8>
Trait Implementations
sourceimpl<K, V> From<HashMap<K, V, RandomState>> for Bytes where
K: Into<Bytes> + Hash + Eq,
V: Into<Bytes>,
impl<K, V> From<HashMap<K, V, RandomState>> for Bytes where
K: Into<Bytes> + Hash + Eq,
V: Into<Bytes>,
sourceimpl From<NaiveDateTime> for Bytes
impl From<NaiveDateTime> for Bytes
sourcefn from(value: NaiveDateTime) -> Self
fn from(value: NaiveDateTime) -> Self
Performs the conversion.
sourceimpl From<NonZeroI16> for Bytes
impl From<NonZeroI16> for Bytes
sourcefn from(value: NonZeroI16) -> Self
fn from(value: NonZeroI16) -> Self
Performs the conversion.
sourceimpl From<NonZeroI32> for Bytes
impl From<NonZeroI32> for Bytes
sourcefn from(value: NonZeroI32) -> Self
fn from(value: NonZeroI32) -> Self
Performs the conversion.
sourceimpl From<NonZeroI64> for Bytes
impl From<NonZeroI64> for Bytes
sourcefn from(value: NonZeroI64) -> Self
fn from(value: NonZeroI64) -> Self
Performs the conversion.
sourceimpl From<PrimitiveDateTime> for Bytes
impl From<PrimitiveDateTime> for Bytes
sourcefn from(value: PrimitiveDateTime) -> Self
fn from(value: PrimitiveDateTime) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more