pub struct ConsumedOutput { /* private fields */ }Expand description
Represents a newly consumed output.
Implementations§
Source§impl ConsumedOutput
impl ConsumedOutput
Sourcepub fn new(target: TransactionId, index: MilestoneIndex) -> Self
pub fn new(target: TransactionId, index: MilestoneIndex) -> Self
Creates a new ConsumedOutput.
Sourcepub fn target(&self) -> &TransactionId
pub fn target(&self) -> &TransactionId
Returns the target transaction of the ConsumedOutput.
Sourcepub fn index(&self) -> MilestoneIndex
pub fn index(&self) -> MilestoneIndex
Returns the milestone index 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 · 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
Source§impl Packable for ConsumedOutput
impl Packable for ConsumedOutput
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> ⓘ
fn pack_new(&self) -> Vec<u8> ⓘ
Packs the instance to bytes and writes them to a newly allocated vector.
Source§impl PartialEq for ConsumedOutput
impl PartialEq for ConsumedOutput
impl Eq 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 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