Struct tl_proto::OwnedRawBytes
source · [−]Expand description
Owned version of RawBytes
Tuple Fields
0: Vec<u8>Trait Implementations
sourceimpl<const BOXED: bool> Clone for OwnedRawBytes<BOXED>
impl<const BOXED: bool> Clone for OwnedRawBytes<BOXED>
sourcefn clone(&self) -> OwnedRawBytes<BOXED>
fn clone(&self) -> OwnedRawBytes<BOXED>
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<const BOXED: bool> Debug for OwnedRawBytes<BOXED>
impl<const BOXED: bool> Debug for OwnedRawBytes<BOXED>
sourceimpl<const BOXED: bool> PartialEq<OwnedRawBytes<BOXED>> for OwnedRawBytes<BOXED>
impl<const BOXED: bool> PartialEq<OwnedRawBytes<BOXED>> for OwnedRawBytes<BOXED>
sourcefn eq(&self, other: &OwnedRawBytes<BOXED>) -> bool
fn eq(&self, other: &OwnedRawBytes<BOXED>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &OwnedRawBytes<BOXED>) -> bool
fn ne(&self, other: &OwnedRawBytes<BOXED>) -> bool
This method tests for !=.
sourceimpl<const BOXED: bool> TlRead<'_> for OwnedRawBytes<BOXED>
impl<const BOXED: bool> TlRead<'_> for OwnedRawBytes<BOXED>
sourceimpl<const BOXED: bool> TlWrite for OwnedRawBytes<BOXED>
impl<const BOXED: bool> TlWrite for OwnedRawBytes<BOXED>
const TL_WRITE_BOXED: bool = BOXED
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<const BOXED: bool> Eq for OwnedRawBytes<BOXED>
impl<const BOXED: bool> StructuralEq for OwnedRawBytes<BOXED>
impl<const BOXED: bool> StructuralPartialEq for OwnedRawBytes<BOXED>
Auto Trait Implementations
impl<const BOXED: bool> RefUnwindSafe for OwnedRawBytes<BOXED>
impl<const BOXED: bool> Send for OwnedRawBytes<BOXED>
impl<const BOXED: bool> Sync for OwnedRawBytes<BOXED>
impl<const BOXED: bool> Unpin for OwnedRawBytes<BOXED>
impl<const BOXED: bool> UnwindSafe for OwnedRawBytes<BOXED>
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