pub enum DataSignature {
Code(Vec<u8>),
Data(Vec<u8>),
None(bool),
}
Variants§
Code(Vec<u8>)
this is signature about adhoc code
Data(Vec<u8>)
this is signature about adhoc data
None(bool)
fill this item if there is no signature
Implementations§
§impl DataSignature
impl DataSignature
pub fn merge<B>(
field: &mut Option<DataSignature>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>( field: &mut Option<DataSignature>, tag: u32, wire_type: WireType, buf: &mut B, ctx: DecodeContext ) -> Result<(), DecodeError>where B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
pub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
§impl Clone for DataSignature
impl Clone for DataSignature
§fn clone(&self) -> DataSignature
fn clone(&self) -> DataSignature
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for DataSignature
impl Debug for DataSignature
§impl PartialEq for DataSignature
impl PartialEq for DataSignature
§fn eq(&self, other: &DataSignature) -> bool
fn eq(&self, other: &DataSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataSignature
Auto Trait Implementations§
impl RefUnwindSafe for DataSignature
impl Send for DataSignature
impl Sync for DataSignature
impl Unpin for DataSignature
impl UnwindSafe for DataSignature
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