pub enum Blob<M> {
Encoded(PbfBlob),
Decoded(M),
}
Variants§
Implementations§
Source§impl<M: Message> Blob<M>
impl<M: Message> Blob<M>
pub fn decode_into(self) -> Result<M>
pub fn decode(&mut self) -> Result<&mut M>
pub fn parse_and_decode(is: &mut CodedInputStream<'_>) -> Result<M>
Trait Implementations§
impl<M> StructuralPartialEq for Blob<M>
Auto Trait Implementations§
impl<M> !Freeze for Blob<M>
impl<M> RefUnwindSafe for Blob<M>where
M: RefUnwindSafe,
impl<M> Send for Blob<M>where
M: Send,
impl<M> Sync for Blob<M>where
M: Sync,
impl<M> Unpin for Blob<M>where
M: Unpin,
impl<M> UnwindSafe for Blob<M>where
M: 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