pub enum AggregateSignatureType {
Concatenation,
Future,
}
Expand description
The type of STM aggregate signature.
Variants§
Implementations§
Source§impl AggregateSignatureType
impl AggregateSignatureType
Sourcepub fn get_byte_encoding_prefix(&self) -> u8
pub fn get_byte_encoding_prefix(&self) -> u8
The prefix byte used in the byte representation of the aggregate signature type.
IMPORTANT: This value is used in serialization/deserialization. Changing it will break compatibility.
Sourcepub fn from_byte_encoding_prefix(byte: u8) -> Option<Self>
pub fn from_byte_encoding_prefix(byte: u8) -> Option<Self>
Create an aggregate signature type from a prefix byte.
IMPORTANT: This value is used in serialization/deserialization. Changing it will break compatibility.
Trait Implementations§
Source§impl Clone for AggregateSignatureType
impl Clone for AggregateSignatureType
Source§fn clone(&self) -> AggregateSignatureType
fn clone(&self) -> AggregateSignatureType
Returns a duplicate 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 moreSource§impl Debug for AggregateSignatureType
impl Debug for AggregateSignatureType
Source§impl Default for AggregateSignatureType
impl Default for AggregateSignatureType
Source§fn default() -> AggregateSignatureType
fn default() -> AggregateSignatureType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AggregateSignatureType
impl<'de> Deserialize<'de> for AggregateSignatureType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AggregateSignatureType
impl Display for AggregateSignatureType
Source§impl<D: Clone + Digest + FixedOutput + Send + Sync> From<&AggregateSignature<D>> for AggregateSignatureType
impl<D: Clone + Digest + FixedOutput + Send + Sync> From<&AggregateSignature<D>> for AggregateSignatureType
Source§fn from(aggr_sig: &AggregateSignature<D>) -> Self
fn from(aggr_sig: &AggregateSignature<D>) -> Self
Converts to this type from the input type.
Source§impl Hash for AggregateSignatureType
impl Hash for AggregateSignatureType
Source§impl PartialEq for AggregateSignatureType
impl PartialEq for AggregateSignatureType
Source§impl Serialize for AggregateSignatureType
impl Serialize for AggregateSignatureType
impl Copy for AggregateSignatureType
impl Eq for AggregateSignatureType
impl StructuralPartialEq for AggregateSignatureType
Auto Trait Implementations§
impl Freeze for AggregateSignatureType
impl RefUnwindSafe for AggregateSignatureType
impl Send for AggregateSignatureType
impl Sync for AggregateSignatureType
impl Unpin for AggregateSignatureType
impl UnwindSafe for AggregateSignatureType
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