pub struct ByteBufOwned(pub Bytes);Tuple Fields§
§0: BytesTrait Implementations§
Source§impl AsRef<[u8]> for ByteBufOwned
impl AsRef<[u8]> for ByteBufOwned
Source§impl Borrow<[u8]> for ByteBufOwned
impl Borrow<[u8]> for ByteBufOwned
impl ByteBufT for ByteBufOwned
Source§impl Clone for ByteBufOwned
impl Clone for ByteBufOwned
Source§fn clone(&self) -> ByteBufOwned
fn clone(&self) -> ByteBufOwned
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CloneToOwned for ByteBufOwned
impl CloneToOwned for ByteBufOwned
type Target = ByteBufOwned
fn clone_to_owned( &self, _within_buffer: Option<&Bytes>, ) -> <ByteBufOwned as CloneToOwned>::Target
Source§impl Debug for ByteBufOwned
impl Debug for ByteBufOwned
Source§impl Default for ByteBufOwned
impl Default for ByteBufOwned
Source§fn default() -> ByteBufOwned
fn default() -> ByteBufOwned
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ByteBufOwned
impl<'de> Deserialize<'de> for ByteBufOwned
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ByteBufOwned, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ByteBufOwned, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ByteBufOwned
impl Display for ByteBufOwned
impl Eq for ByteBufOwned
Source§impl<'a> From<&'a [u8]> for ByteBufOwned
impl<'a> From<&'a [u8]> for ByteBufOwned
Source§fn from(b: &'a [u8]) -> ByteBufOwned
fn from(b: &'a [u8]) -> ByteBufOwned
Converts to this type from the input type.
Source§impl From<Bytes> for ByteBufOwned
impl From<Bytes> for ByteBufOwned
Source§fn from(b: Bytes) -> ByteBufOwned
fn from(b: Bytes) -> ByteBufOwned
Converts to this type from the input type.
Source§impl Hash for ByteBufOwned
impl Hash for ByteBufOwned
Source§impl Ord for ByteBufOwned
impl Ord for ByteBufOwned
Source§fn cmp(&self, other: &ByteBufOwned) -> Ordering
fn cmp(&self, other: &ByteBufOwned) -> Ordering
1.21.0 (const: unstable) · 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
Source§impl PartialEq for ByteBufOwned
impl PartialEq for ByteBufOwned
Source§fn eq(&self, other: &ByteBufOwned) -> bool
fn eq(&self, other: &ByteBufOwned) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ByteBufOwned
impl PartialOrd for ByteBufOwned
Source§impl Serialize for ByteBufOwned
impl Serialize for ByteBufOwned
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ByteBufOwned
Auto Trait Implementations§
impl !Freeze for ByteBufOwned
impl RefUnwindSafe for ByteBufOwned
impl Send for ByteBufOwned
impl Sync for ByteBufOwned
impl Unpin for ByteBufOwned
impl UnsafeUnpin for ByteBufOwned
impl UnwindSafe for ByteBufOwned
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