pub struct HashLockedForfeitNonces {
pub forfeit_tx_nonce: PublicNonce,
pub forfeit_claim_tx_nonce: PublicNonce,
}Expand description
Set of nonces for a hArk forfeit
Fields§
§forfeit_tx_nonce: PublicNonce§forfeit_claim_tx_nonce: PublicNonceTrait Implementations§
Source§impl Clone for HashLockedForfeitNonces
impl Clone for HashLockedForfeitNonces
Source§fn clone(&self) -> HashLockedForfeitNonces
fn clone(&self) -> HashLockedForfeitNonces
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 HashLockedForfeitNonces
impl Debug for HashLockedForfeitNonces
Source§impl PartialEq for HashLockedForfeitNonces
impl PartialEq for HashLockedForfeitNonces
Source§impl ProtocolEncoding for HashLockedForfeitNonces
impl ProtocolEncoding for HashLockedForfeitNonces
Source§fn encode<W: Write + ?Sized>(&self, w: &mut W) -> Result<(), Error>
fn encode<W: Write + ?Sized>(&self, w: &mut W) -> Result<(), Error>
Encode the object into the writer.
Source§fn decode<R: Read + ?Sized>(r: &mut R) -> Result<Self, ProtocolDecodingError>
fn decode<R: Read + ?Sized>(r: &mut R) -> Result<Self, ProtocolDecodingError>
Decode the object from the writer.
Source§fn deserialize(byte_slice: &[u8]) -> Result<Self, ProtocolDecodingError>
fn deserialize(byte_slice: &[u8]) -> Result<Self, ProtocolDecodingError>
Deserialize object from the given byte slice.
Source§fn serialize_hex(&self) -> String
fn serialize_hex(&self) -> String
Serialize the object to a lowercase hex string.
Source§fn deserialize_hex(hex_str: &str) -> Result<Self, ProtocolDecodingError>
fn deserialize_hex(hex_str: &str) -> Result<Self, ProtocolDecodingError>
Deserialize object from hex slice.
impl Eq for HashLockedForfeitNonces
impl StructuralPartialEq for HashLockedForfeitNonces
Auto Trait Implementations§
impl Freeze for HashLockedForfeitNonces
impl RefUnwindSafe for HashLockedForfeitNonces
impl Send for HashLockedForfeitNonces
impl Sync for HashLockedForfeitNonces
impl Unpin for HashLockedForfeitNonces
impl UnwindSafe for HashLockedForfeitNonces
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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.