Enum bee_message::unlock::UnlockBlock [−][src]
#[non_exhaustive]
pub enum UnlockBlock {
Signature(SignatureUnlock),
Reference(ReferenceUnlock),
}Defines the mechanism by which a transaction input is authorized to be consumed.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Signature(SignatureUnlock)A signature unlock block.
Reference(ReferenceUnlock)A reference unlock block.
Implementations
impl UnlockBlock[src]
impl UnlockBlock[src]Trait Implementations
impl Clone for UnlockBlock[src]
impl Clone for UnlockBlock[src]fn clone(&self) -> UnlockBlock[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Eq for UnlockBlock[src]
impl Eq for UnlockBlock[src]impl From<ReferenceUnlock> for UnlockBlock[src]
impl From<ReferenceUnlock> for UnlockBlock[src]fn from(reference: ReferenceUnlock) -> Self[src]
impl From<SignatureUnlock> for UnlockBlock[src]
impl From<SignatureUnlock> for UnlockBlock[src]fn from(signature: SignatureUnlock) -> Self[src]
impl Hash for UnlockBlock[src]
impl Hash for UnlockBlock[src]impl Packable for UnlockBlock[src]
impl Packable for UnlockBlock[src]type Error = Error
Associated error type.
fn packed_len(&self) -> usize[src]
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>[src]
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>[src]
reader: &mut R
) -> Result<Self, Self::Error>
pub fn pack_new(&self) -> Vec<u8, Global>[src]
pub fn unpack<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized, [src]
R: Read + ?Sized,
pub fn unpack_unchecked<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized, [src]
R: Read + ?Sized,
impl PartialEq<UnlockBlock> for UnlockBlock[src]
impl PartialEq<UnlockBlock> for UnlockBlock[src]fn eq(&self, other: &UnlockBlock) -> bool[src]
fn ne(&self, other: &UnlockBlock) -> bool[src]
impl StructuralEq for UnlockBlock[src]
impl StructuralEq for UnlockBlock[src]impl StructuralPartialEq for UnlockBlock[src]
impl StructuralPartialEq for UnlockBlock[src]Auto Trait Implementations
impl RefUnwindSafe for UnlockBlock
impl RefUnwindSafe for UnlockBlockimpl Send for UnlockBlock
impl Send for UnlockBlockimpl Sync for UnlockBlock
impl Sync for UnlockBlockimpl Unpin for UnlockBlock
impl Unpin for UnlockBlockimpl UnwindSafe for UnlockBlock
impl UnwindSafe for UnlockBlock