pub struct ChannelTransitionReplayDescriptorV1 { /* private fields */ }Implementations§
Source§impl ChannelTransitionReplayDescriptorV1
impl ChannelTransitionReplayDescriptorV1
pub fn for_reservation( context: &ChannelReservationReplayContextV1, open_artifacts: &ChannelTransitionReplayOpenArtifactsV1, authority_pins: &ChannelTransitionReplayAuthorityPinsV1, expected_batch: &EconomicStateBatchV1, ) -> Result<Self, ChannelError>
pub fn for_dispatch( context: &ChannelReservationReplayContextV1, open_artifacts: &ChannelTransitionReplayOpenArtifactsV1, authority_pins: &ChannelTransitionReplayAuthorityPinsV1, current: &VerifiedEconomicStateView, expected_batch: &EconomicStateBatchV1, ) -> Result<Self, ChannelError>
pub fn for_cancellation( context: &ChannelReservationReplayContextV1, open_artifacts: &ChannelTransitionReplayOpenArtifactsV1, authority_pins: &ChannelTransitionReplayAuthorityPinsV1, reservation_view: &VerifiedEconomicStateView, current: &VerifiedEconomicStateView, expected_batch: &EconomicStateBatchV1, ) -> Result<Self, ChannelError>
pub fn for_terminal( context: &ChannelReservationReplayContextV1, open_artifacts: &ChannelTransitionReplayOpenArtifactsV1, authority_pins: &ChannelTransitionReplayAuthorityPinsV1, reservation_view: &VerifiedEconomicStateView, current: &VerifiedEconomicStateView, signed_receipt: &ChioReceipt, obligation: Option<&ObligationAtomV1>, signed_next_state: &SignedChannelStateV1, terminal_outcome: &VerifiedChannelTerminalOutcomeCommitmentV1, expected_batch: &EconomicStateBatchV1, ) -> Result<Self, ChannelError>
pub fn kind(&self) -> ChannelTransitionReplayKindV1
pub fn key(&self) -> &str
pub fn request(&self) -> &EconomicRequestBindingV1
pub fn digest(&self) -> &str
pub fn expected_batch_digest(&self) -> &str
pub fn not_after_unix_ms(&self) -> Option<u64>
pub fn canonical_bytes(&self) -> Result<Vec<u8>, ChannelError>
Trait Implementations§
Source§impl Clone for ChannelTransitionReplayDescriptorV1
impl Clone for ChannelTransitionReplayDescriptorV1
Source§fn clone(&self) -> ChannelTransitionReplayDescriptorV1
fn clone(&self) -> ChannelTransitionReplayDescriptorV1
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<'de> Deserialize<'de> for ChannelTransitionReplayDescriptorV1
impl<'de> Deserialize<'de> for ChannelTransitionReplayDescriptorV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChannelTransitionReplayDescriptorV1
impl RefUnwindSafe for ChannelTransitionReplayDescriptorV1
impl Send for ChannelTransitionReplayDescriptorV1
impl Sync for ChannelTransitionReplayDescriptorV1
impl Unpin for ChannelTransitionReplayDescriptorV1
impl UnsafeUnpin for ChannelTransitionReplayDescriptorV1
impl UnwindSafe for ChannelTransitionReplayDescriptorV1
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