Struct pb_jelly::Lazy [−][src]
pub struct Lazy<B: PbBuffer> { /* fields omitted */ }
Expand description
A wrapper around a lazily-evaluted PbBufferReader which implements Message.
Implementations
Trait Implementations
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. Read more
Computes the number of bytes in all grpc slices. This information is used to optimize memory allocations in zero-copy encoding. Read more
Serializes the message to the writer.
Reads the message from the blob reader, copying as necessary.
Helper method for serializing a message to a Vec
Auto Trait Implementations
impl<B> RefUnwindSafe for Lazy<B> where
B: RefUnwindSafe,
impl<B> UnwindSafe for Lazy<B> where
B: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more