[−][src]Struct pb_jelly::Lazy
A wrapper around a lazily-evaluted PbBufferReader which implements Message.
Implementations
impl<B: PbBuffer> Lazy<B>
[src]
pub fn new(r: B) -> Self
[src]
pub fn into_buffer(self) -> B
[src]
Trait Implementations
impl<B: Clone + PbBuffer> Clone for Lazy<B>
[src]
impl<B: PbBuffer> Debug for Lazy<B>
[src]
impl<B: Default + PbBuffer> Default for Lazy<B>
[src]
impl<B: PbBuffer + PartialEq> Message for Lazy<B>
[src]
fn compute_size(&self) -> usize
[src]
fn compute_grpc_slices_size(&self) -> usize
[src]
fn serialize<W: PbBufferWriter>(&self, w: &mut W) -> Result<()>
[src]
fn deserialize<R: PbBufferReader>(&mut self, r: &mut R) -> Result<()>
[src]
fn serialize_to_vec(&self) -> Vec<u8>
[src]
fn serialize_to_writer<W: Write>(&self, writer: &mut W) -> Result<()>
[src]
fn deserialize_from_slice(slice: &[u8]) -> Result<Self>
[src]
impl<B: PartialEq + PbBuffer> PartialEq<Lazy<B>> for Lazy<B>
[src]
impl<B: PbBuffer> StructuralPartialEq for Lazy<B>
[src]
Auto Trait Implementations
impl<B> RefUnwindSafe for Lazy<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for Lazy<B> where
B: Send,
B: Send,
impl<B> Sync for Lazy<B> where
B: Sync,
B: Sync,
impl<B> Unpin for Lazy<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for Lazy<B> where
B: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, E> Message for T where
E: Debug,
T: TryFrom<i32, Error = E> + Into<i32> + ProtoEnum,
[src]
E: Debug,
T: TryFrom<i32, Error = E> + Into<i32> + ProtoEnum,
fn compute_size(&Self) -> usize
[src]
fn serialize<W>(&Self, &mut W) -> Result<(), Error> where
W: PbBufferWriter,
[src]
W: PbBufferWriter,
fn deserialize<B>(&mut Self, &mut B) -> Result<(), Error> where
B: PbBufferReader,
[src]
B: PbBufferReader,
fn compute_grpc_slices_size(&self) -> usize
[src]
fn serialize_to_vec(&self) -> Vec<u8>
[src]
fn serialize_to_writer<W: Write>(&self, writer: &mut W) -> Result<()>
[src]
fn deserialize_from_slice(slice: &[u8]) -> Result<Self>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,