pub struct ConsumedOutput { /* private fields */ }Expand description
Represents a newly consumed output.
Implementations§
Source§impl ConsumedOutput
impl ConsumedOutput
Sourcepub fn new(
target: TransactionId,
milestone_index: MilestoneIndex,
milestone_timestamp: u32,
) -> Self
pub fn new( target: TransactionId, milestone_index: MilestoneIndex, milestone_timestamp: u32, ) -> Self
Creates a new ConsumedOutput.
Sourcepub fn target(&self) -> &TransactionId
pub fn target(&self) -> &TransactionId
Returns the target transaction of the ConsumedOutput.
Sourcepub fn milestone_index(&self) -> MilestoneIndex
pub fn milestone_index(&self) -> MilestoneIndex
Returns the milestone index of the ConsumedOutput.
Sourcepub fn milestone_timestamp(&self) -> u32
pub fn milestone_timestamp(&self) -> u32
Returns the milestone timestamp of the ConsumedOutput.
Trait Implementations§
Source§impl Clone for ConsumedOutput
impl Clone for ConsumedOutput
Source§fn clone(&self) -> ConsumedOutput
fn clone(&self) -> ConsumedOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConsumedOutput
impl Debug for ConsumedOutput
impl Eq for ConsumedOutput
Source§impl Packable for ConsumedOutput
impl Packable for ConsumedOutput
Source§type UnpackError = <TransactionId as Packable>::UnpackError
type UnpackError = <TransactionId as Packable>::UnpackError
The error type that can be returned if some semantic error occurs while unpacking. Read more
Source§type UnpackVisitor = <TransactionId as Packable>::UnpackVisitor
type UnpackVisitor = <TransactionId as Packable>::UnpackVisitor
FIXME: docs
Source§fn pack<P: Packer>(&self, packer: &mut P) -> Result<(), P::Error>
fn pack<P: Packer>(&self, packer: &mut P) -> Result<(), P::Error>
Packs this value into the given
Packer.Source§fn unpack<U: Unpacker, const VERIFY: bool>(
unpacker: &mut U,
visitor: &Self::UnpackVisitor,
) -> Result<Self, UnpackError<Self::UnpackError, U::Error>>
fn unpack<U: Unpacker, const VERIFY: bool>( unpacker: &mut U, visitor: &Self::UnpackVisitor, ) -> Result<Self, UnpackError<Self::UnpackError, U::Error>>
Unpacks this value from the given
Unpacker. The VERIFY generic parameter can be used to skip additional
syntactic checks.Source§impl PartialEq for ConsumedOutput
impl PartialEq for ConsumedOutput
impl StructuralPartialEq for ConsumedOutput
Auto Trait Implementations§
impl Freeze for ConsumedOutput
impl RefUnwindSafe for ConsumedOutput
impl Send for ConsumedOutput
impl Sync for ConsumedOutput
impl Unpin for ConsumedOutput
impl UnsafeUnpin for ConsumedOutput
impl UnwindSafe for ConsumedOutput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<P> PackableExt for Pwhere
P: Packable,
impl<P> PackableExt for Pwhere
P: Packable,
Source§fn unpack_verified<T>(
bytes: T,
visitor: &<P as Packable>::UnpackVisitor,
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
fn unpack_verified<T>( bytes: T, visitor: &<P as Packable>::UnpackVisitor, ) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
Unpacks this value from a type that implements [AsRef<[u8]>].
Source§fn unpack_unverified<T>(
bytes: T,
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
fn unpack_unverified<T>( bytes: T, ) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
Unpacks this value from a type that implements [AsRef<[u8]>] skipping some syntatical checks.
Source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length in bytes of the value after being packed. The returned value always matches the number of
bytes written using
pack.