Enum bee_message::input::Input [−][src]
#[non_exhaustive]
pub enum Input {
Utxo(UtxoInput),
Treasury(TreasuryInput),
}A generic input supporting different input kinds.
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.
Utxo(UtxoInput)A UTXO input.
Treasury(TreasuryInput)A treasury input.
Implementations
Trait Implementations
impl From<TreasuryInput> for Input[src]
impl From<TreasuryInput> for Input[src]fn from(input: TreasuryInput) -> Self[src]
impl Packable for Input[src]
impl Packable for Input[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 PartialOrd<Input> for Input[src]
impl PartialOrd<Input> for Input[src]impl StructuralEq for Input[src]
impl StructuralEq for Input[src]impl StructuralPartialEq for Input[src]
impl StructuralPartialEq for Input[src]Auto Trait Implementations
impl RefUnwindSafe for Input
impl RefUnwindSafe for Inputimpl UnwindSafe for Input
impl UnwindSafe for Input