pub struct ResourcePoolEvent { /* private fields */ }Implementations§
Source§impl ResourcePoolEvent
impl ResourcePoolEvent
pub fn opened( sequence: u64, timestamp: MonotonicTimestamp, evidence: &ResourcePoolEvidence, ) -> Result<Self, VNextError>
pub fn transition( sequence: u64, timestamp: MonotonicTimestamp, evidence: &ResourcePoolEvidence, receipt: &ResourceTransitionReceipt, context: &ResourceTransitionValidationContext, ) -> Result<Self, VNextError>
pub fn lease_transition( sequence: u64, timestamp: MonotonicTimestamp, evidence: &ResourcePoolEvidence, receipt: &ResourceLeaseTransitionReceipt, context: &ResourceLeaseValidationContext, ) -> Result<Self, VNextError>
pub fn failed( sequence: u64, timestamp: MonotonicTimestamp, evidence: &ResourcePoolEvidence, failure: &ResourceFailureReceipt, ) -> Result<Self, VNextError>
pub fn recovery_completed( sequence: u64, timestamp: MonotonicTimestamp, evidence: &ResourcePoolEvidence, recovery: &ResourceFailureReceipt, ) -> Result<Self, VNextError>
pub fn closed( sequence: u64, timestamp: MonotonicTimestamp, evidence: &ResourcePoolEvidence, snapshot: &ResourceLedgerSnapshot, ) -> Result<Self, VNextError>
pub const fn timestamp(&self) -> MonotonicTimestamp
pub const fn kind(&self) -> ResourcePoolEventKind
pub fn identity(&self) -> &ResourcePoolEventIdentity
pub fn detail(&self) -> &ResourcePoolEventDetail
pub fn decode_untrusted( bytes: &[u8], ) -> Result<UnvalidatedResourcePoolEvent, VNextError>
Trait Implementations§
Source§impl Clone for ResourcePoolEvent
impl Clone for ResourcePoolEvent
Source§fn clone(&self) -> ResourcePoolEvent
fn clone(&self) -> ResourcePoolEvent
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 ResourcePoolEvent
impl Debug for ResourcePoolEvent
impl Eq for ResourcePoolEvent
Source§impl PartialEq for ResourcePoolEvent
impl PartialEq for ResourcePoolEvent
Source§impl Serialize for ResourcePoolEvent
impl Serialize for ResourcePoolEvent
impl StructuralPartialEq for ResourcePoolEvent
Auto Trait Implementations§
impl Freeze for ResourcePoolEvent
impl RefUnwindSafe for ResourcePoolEvent
impl Send for ResourcePoolEvent
impl Sync for ResourcePoolEvent
impl Unpin for ResourcePoolEvent
impl UnsafeUnpin for ResourcePoolEvent
impl UnwindSafe for ResourcePoolEvent
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