Enum bee_message::unlock::UnlockBlock
source · pub enum UnlockBlock {
Signature(SignatureUnlock),
Reference(ReferenceUnlock),
}Expand description
Defines the mechanism by which a transaction input is authorized to be consumed.
Variants§
Signature(SignatureUnlock)
A signature unlock block.
Reference(ReferenceUnlock)
A reference unlock block.
Implementations§
Trait Implementations§
source§impl Clone for UnlockBlock
impl Clone for UnlockBlock
source§fn clone(&self) -> UnlockBlock
fn clone(&self) -> UnlockBlock
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 moresource§impl Debug for UnlockBlock
impl Debug for UnlockBlock
source§impl From<ReferenceUnlock> for UnlockBlock
impl From<ReferenceUnlock> for UnlockBlock
source§fn from(reference: ReferenceUnlock) -> Self
fn from(reference: ReferenceUnlock) -> Self
Converts to this type from the input type.
source§impl From<SignatureUnlock> for UnlockBlock
impl From<SignatureUnlock> for UnlockBlock
source§fn from(signature: SignatureUnlock) -> Self
fn from(signature: SignatureUnlock) -> Self
Converts to this type from the input type.
source§impl Hash for UnlockBlock
impl Hash for UnlockBlock
source§impl Packable for UnlockBlock
impl Packable for UnlockBlock
source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
source§fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
Packs the instance to bytes and writes them to the passed writer.
source§fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>( reader: &mut R ) -> Result<Self, Self::Error>
Reads bytes from the passed reader and unpacks them into an instance.
source§fn pack_new(&self) -> Vec<u8, Global>
fn pack_new(&self) -> Vec<u8, Global>
Packs the instance to bytes and writes them to a newly allocated vector.
source§impl PartialEq<UnlockBlock> for UnlockBlock
impl PartialEq<UnlockBlock> for UnlockBlock
source§fn eq(&self, other: &UnlockBlock) -> bool
fn eq(&self, other: &UnlockBlock) -> bool
This method tests for
self and other values to be equal, and is used
by ==.