pub struct Lazy<B> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<B: PbBuffer + PartialEq> Message for Lazy<B>
impl<B: PbBuffer + PartialEq> Message for Lazy<B>
source§fn compute_size(&self) -> usize
fn compute_size(&self) -> usize
Computes the number of bytes a message will take when serialized. This does not
include number of bytes required for tag+wire_format or the bytes used to represent
length of the message in case of LengthDelimited messages/types.
source§fn compute_grpc_slices_size(&self) -> usize
fn compute_grpc_slices_size(&self) -> usize
Computes the number of bytes in all grpc slices.
This information is used to optimize memory allocations in zero-copy encoding.
source§fn serialize<W: PbBufferWriter>(&self, w: &mut W) -> Result<()>
fn serialize<W: PbBufferWriter>(&self, w: &mut W) -> Result<()>
Serializes the message to the writer.
source§fn deserialize<R: PbBufferReader>(&mut self, r: &mut R) -> Result<()>
fn deserialize<R: PbBufferReader>(&mut self, r: &mut R) -> Result<()>
Reads the message from the blob reader, copying as necessary.
source§fn descriptor(&self) -> Option<MessageDescriptor>
fn descriptor(&self) -> Option<MessageDescriptor>
Returns the
MessageDescriptor
for this message, if this is not a primitive type.source§impl<B: PartialEq> PartialEq for Lazy<B>
impl<B: PartialEq> PartialEq for Lazy<B>
impl<B> StructuralPartialEq for Lazy<B>
Auto Trait Implementations§
impl<B> RefUnwindSafe for Lazy<B>where
B: RefUnwindSafe,
impl<B> Send for Lazy<B>where
B: Send,
impl<B> Sync for Lazy<B>where
B: Sync,
impl<B> Unpin for Lazy<B>where
B: Unpin,
impl<B> UnwindSafe for Lazy<B>where
B: UnwindSafe,
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