Struct tl_proto::BoxedWriter
source · [−]pub struct BoxedWriter<T>(pub T);Expand description
Simple helper which contains inner value and constructor id.
Used mostly for serialization, so can contain references
Tuple Fields
0: TTrait Implementations
sourceimpl<T: Clone> Clone for BoxedWriter<T>
impl<T: Clone> Clone for BoxedWriter<T>
sourcefn clone(&self) -> BoxedWriter<T>
fn clone(&self) -> BoxedWriter<T>
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<T: Debug> Debug for BoxedWriter<T>
impl<T: Debug> Debug for BoxedWriter<T>
sourceimpl<T> TlWrite for BoxedWriter<T> where
T: BoxedConstructor + TlWrite,
impl<T> TlWrite for BoxedWriter<T> where
T: BoxedConstructor + TlWrite,
const TL_WRITE_BOXED: bool = true
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,
Auto Trait Implementations
impl<T> RefUnwindSafe for BoxedWriter<T> where
T: RefUnwindSafe,
impl<T> Send for BoxedWriter<T> where
T: Send,
impl<T> Sync for BoxedWriter<T> where
T: Sync,
impl<T> Unpin for BoxedWriter<T> where
T: Unpin,
impl<T> UnwindSafe for BoxedWriter<T> where
T: UnwindSafe,
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