Enum bee_message::output::Output
source · [−]pub enum Output {
SignatureLockedSingle(SignatureLockedSingleOutput),
SignatureLockedDustAllowance(SignatureLockedDustAllowanceOutput),
Treasury(TreasuryOutput),
}
Expand description
A generic output that can represent different types defining the deposit of funds.
Variants
SignatureLockedSingle(SignatureLockedSingleOutput)
A signature locked single output.
SignatureLockedDustAllowance(SignatureLockedDustAllowanceOutput)
A signature locked dust allowance output.
Treasury(TreasuryOutput)
A treasury output.
Implementations
Trait Implementations
sourceimpl From<SignatureLockedDustAllowanceOutput> for Output
impl From<SignatureLockedDustAllowanceOutput> for Output
sourcefn from(output: SignatureLockedDustAllowanceOutput) -> Self
fn from(output: SignatureLockedDustAllowanceOutput) -> Self
Converts to this type from the input type.
sourceimpl From<SignatureLockedSingleOutput> for Output
impl From<SignatureLockedSingleOutput> for Output
sourcefn from(output: SignatureLockedSingleOutput) -> Self
fn from(output: SignatureLockedSingleOutput) -> Self
Converts to this type from the input type.
sourceimpl From<TreasuryOutput> for Output
impl From<TreasuryOutput> for Output
sourcefn from(output: TreasuryOutput) -> Self
fn from(output: TreasuryOutput) -> Self
Converts to this type from the input type.
sourceimpl Ord for Output
impl Ord for Output
sourceimpl Packable for Output
impl Packable for Output
sourcefn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourceimpl PartialOrd<Output> for Output
impl PartialOrd<Output> for Output
sourcefn partial_cmp(&self, other: &Output) -> Option<Ordering>
fn partial_cmp(&self, other: &Output) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Output
impl StructuralEq for Output
impl StructuralPartialEq for Output
Auto Trait Implementations
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more