Struct tl_proto::OwnedRawBytes
source · [−]Expand description
Owned version of RawBytes
Tuple Fields
0: Vec<u8>Trait Implementations
sourceimpl Clone for OwnedRawBytes
impl Clone for OwnedRawBytes
sourcefn clone(&self) -> OwnedRawBytes
fn clone(&self) -> OwnedRawBytes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for OwnedRawBytes
impl Debug for OwnedRawBytes
sourceimpl PartialEq<OwnedRawBytes> for OwnedRawBytes
impl PartialEq<OwnedRawBytes> for OwnedRawBytes
sourcefn eq(&self, other: &OwnedRawBytes) -> bool
fn eq(&self, other: &OwnedRawBytes) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &OwnedRawBytes) -> bool
fn ne(&self, other: &OwnedRawBytes) -> bool
This method tests for !=.
sourceimpl TlRead<'_> for OwnedRawBytes
impl TlRead<'_> for OwnedRawBytes
sourceimpl TlWrite for OwnedRawBytes
impl TlWrite for OwnedRawBytes
const TL_WRITE_BOXED: bool = false
sourcefn max_size_hint(&self) -> usize
fn max_size_hint(&self) -> usize
Max required number of bytes
fn write_to<P>(&self, packet: &mut P) where
P: TlPacket,
impl Eq for OwnedRawBytes
impl StructuralEq for OwnedRawBytes
impl StructuralPartialEq for OwnedRawBytes
Auto Trait Implementations
impl RefUnwindSafe for OwnedRawBytes
impl Send for OwnedRawBytes
impl Sync for OwnedRawBytes
impl Unpin for OwnedRawBytes
impl UnwindSafe for OwnedRawBytes
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