Struct raiden_network_messages::messages::LockExpired
source · pub struct LockExpired {
pub message_identifier: MessageIdentifier,
pub chain_id: ChainID,
pub token_network_address: TokenNetworkAddress,
pub channel_identifier: U256,
pub transferred_amount: TokenAmount,
pub locked_amount: LockedAmount,
pub locksroot: Locksroot,
pub nonce: U256,
pub recipient: Address,
pub secrethash: SecretHash,
pub signature: Signature,
}
Expand description
Message used when a lock expires.
This will complete an unsuccessful transfer off-chain.
For this message to be valid the balance proof has to be updated to:
- Remove the expired lock from the pending locks and reflect it in the locksroot.
- Decrease the locked_amount by exactly by lock.amount. If less tokens are decreased the sender may get tokens locked. If more tokens are decreased the recipient will reject the message as on-chain unlocks may fail. This message is necessary for synchronization since other messages may be in-flight, vide Unlock for examples.
Fields§
§message_identifier: MessageIdentifier
§chain_id: ChainID
§token_network_address: TokenNetworkAddress
§channel_identifier: U256
§transferred_amount: TokenAmount
§locked_amount: LockedAmount
§locksroot: Locksroot
§nonce: U256
§recipient: Address
§secrethash: SecretHash
§signature: Signature
Trait Implementations§
source§impl Clone for LockExpired
impl Clone for LockExpired
source§fn clone(&self) -> LockExpired
fn clone(&self) -> LockExpired
Returns a copy 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 LockExpired
impl Debug for LockExpired
source§impl<'de> Deserialize<'de> for LockExpired
impl<'de> Deserialize<'de> for LockExpired
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
source§impl From<SendLockExpired> for LockExpired
impl From<SendLockExpired> for LockExpired
source§fn from(event: SendLockExpired) -> Self
fn from(event: SendLockExpired) -> Self
Converts to this type from the input type.
source§impl PartialEq for LockExpired
impl PartialEq for LockExpired
source§fn eq(&self, other: &LockExpired) -> bool
fn eq(&self, other: &LockExpired) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LockExpired
impl Serialize for LockExpired
source§impl SignedEnvelopeMessage for LockExpired
impl SignedEnvelopeMessage for LockExpired
fn message_hash(&self) -> H256
source§impl SignedMessage for LockExpired
impl SignedMessage for LockExpired
fn bytes_to_sign(&self) -> Vec<u8>
fn sign(&mut self, key: PrivateKey) -> Result<(), SigningError>
fn sign_message(&self, key: PrivateKey) -> Result<Signature, SigningError>
impl Eq for LockExpired
impl StructuralPartialEq for LockExpired
Auto Trait Implementations§
impl Freeze for LockExpired
impl RefUnwindSafe for LockExpired
impl Send for LockExpired
impl Sync for LockExpired
impl Unpin for LockExpired
impl UnwindSafe for LockExpired
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.