pub struct HashPreimage(_);
Expand description
HTLC payment preimage
Trait Implementations
sourceimpl AsMut<<HashPreimage as Wrapper>::Inner> for HashPreimage
impl AsMut<<HashPreimage as Wrapper>::Inner> for HashPreimage
sourcefn as_mut(&mut self) -> &mut <HashPreimage as Wrapper>::Inner
fn as_mut(&mut self) -> &mut <HashPreimage as Wrapper>::Inner
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsRef<<HashPreimage as Wrapper>::Inner> for HashPreimage
impl AsRef<<HashPreimage as Wrapper>::Inner> for HashPreimage
sourcefn as_ref(&self) -> &<HashPreimage as Wrapper>::Inner
fn as_ref(&self) -> &<HashPreimage as Wrapper>::Inner
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<<HashPreimage as Wrapper>::Inner> for HashPreimage
impl Borrow<<HashPreimage as Wrapper>::Inner> for HashPreimage
sourceimpl BorrowMut<<HashPreimage as Wrapper>::Inner> for HashPreimage
impl BorrowMut<<HashPreimage as Wrapper>::Inner> for HashPreimage
sourcefn borrow_mut(&mut self) -> &mut <HashPreimage as Wrapper>::Inner
fn borrow_mut(&mut self) -> &mut <HashPreimage as Wrapper>::Inner
Mutably borrows from an owned value. Read more
sourceimpl Clone for HashPreimage
impl Clone for HashPreimage
sourcefn clone(&self) -> HashPreimage
fn clone(&self) -> HashPreimage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HashPreimage
impl Debug for HashPreimage
sourceimpl Deref for HashPreimage
impl Deref for HashPreimage
type Target = <HashPreimage as Wrapper>::Inner
type Target = <HashPreimage as Wrapper>::Inner
The resulting type after dereferencing.
sourcefn deref(&self) -> &<HashPreimage as Deref>::Target
fn deref(&self) -> &<HashPreimage as Deref>::Target
Dereferences the value.
sourceimpl DerefMut for HashPreimage
impl DerefMut for HashPreimage
sourcefn deref_mut(&mut self) -> &mut <HashPreimage as Deref>::Target
fn deref_mut(&mut self) -> &mut <HashPreimage as Deref>::Target
Mutably dereferences the value.
sourceimpl Display for HashPreimage
impl Display for HashPreimage
sourceimpl DumbDefault for HashPreimage
impl DumbDefault for HashPreimage
sourcefn dumb_default() -> HashPreimage
fn dumb_default() -> HashPreimage
Returns an object initialized with dumb data
sourceimpl From<HashPreimage> for HashLock
impl From<HashPreimage> for HashLock
sourcefn from(preimage: HashPreimage) -> HashLock
fn from(preimage: HashPreimage) -> HashLock
Converts to this type from the input type.
sourceimpl From<Slice32> for HashPreimage
impl From<Slice32> for HashPreimage
sourcefn from(v: Slice32) -> HashPreimage
fn from(v: Slice32) -> HashPreimage
Converts to this type from the input type.
sourceimpl FromHex for HashPreimage
impl FromHex for HashPreimage
sourcefn from_byte_iter<I>(iter: I) -> Result<HashPreimage, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_byte_iter<I>(iter: I) -> Result<HashPreimage, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produce an object from a byte iterator
sourceimpl FromStr for HashPreimage
impl FromStr for HashPreimage
type Err = <<HashPreimage as Wrapper>::Inner as FromStr>::Err
type Err = <<HashPreimage as Wrapper>::Inner as FromStr>::Err
The associated error which can be returned from parsing.
sourcefn from_str(s: &str) -> Result<HashPreimage, <HashPreimage as FromStr>::Err>
fn from_str(s: &str) -> Result<HashPreimage, <HashPreimage as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
sourceimpl Hash for HashPreimage
impl Hash for HashPreimage
sourceimpl LowerHex for HashPreimage
impl LowerHex for HashPreimage
sourceimpl Ord for HashPreimage
impl Ord for HashPreimage
sourceimpl PartialEq<HashPreimage> for HashPreimage
impl PartialEq<HashPreimage> for HashPreimage
sourcefn eq(&self, other: &HashPreimage) -> bool
fn eq(&self, other: &HashPreimage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HashPreimage) -> bool
fn ne(&self, other: &HashPreimage) -> bool
This method tests for !=
.
sourceimpl PartialOrd<HashPreimage> for HashPreimage
impl PartialOrd<HashPreimage> for HashPreimage
sourcefn partial_cmp(&self, other: &HashPreimage) -> Option<Ordering>
fn partial_cmp(&self, other: &HashPreimage) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl StrictDecode for HashPreimage
impl StrictDecode for HashPreimage
sourcefn strict_decode<D>(d: D) -> Result<HashPreimage, Error> where
D: Read,
fn strict_decode<D>(d: D) -> Result<HashPreimage, Error> where
D: Read,
Decode with the given std::io::Read
instance; must either
construct an instance or return implementation-specific error type. Read more
sourcefn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode
Read more
sourceimpl StrictEncode for HashPreimage
impl StrictEncode for HashPreimage
sourcefn strict_encode<E>(&self, e: E) -> Result<usize, Error> where
E: Write,
fn strict_encode<E>(&self, e: E) -> Result<usize, Error> where
E: Write,
Encode with the given std::io::Write
instance; must return result
with either amount of bytes encoded – or implementation-specific
error type. Read more
sourcefn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
Serializes data as a byte array using StrictEncode::strict_encode
function Read more
sourceimpl UpperHex for HashPreimage
impl UpperHex for HashPreimage
sourceimpl Wrapper for HashPreimage
impl Wrapper for HashPreimage
sourcefn from_inner(inner: <HashPreimage as Wrapper>::Inner) -> HashPreimage
fn from_inner(inner: <HashPreimage as Wrapper>::Inner) -> HashPreimage
Instantiates wrapper type with the inner data
sourcefn as_inner(&self) -> &<HashPreimage as Wrapper>::Inner
fn as_inner(&self) -> &<HashPreimage as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
sourcefn as_inner_mut(&mut self) -> &mut <HashPreimage as Wrapper>::Inner
fn as_inner_mut(&mut self) -> &mut <HashPreimage as Wrapper>::Inner
Returns a mutable reference to the inner representation for the wrapper type Read more
sourcefn into_inner(self) -> <HashPreimage as Wrapper>::Inner
fn into_inner(self) -> <HashPreimage as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl Copy for HashPreimage
impl Eq for HashPreimage
impl StructuralEq for HashPreimage
impl StructuralPartialEq for HashPreimage
Auto Trait Implementations
impl RefUnwindSafe for HashPreimage
impl Send for HashPreimage
impl Sync for HashPreimage
impl Unpin for HashPreimage
impl UnwindSafe for HashPreimage
Blanket Implementations
impl<T> Base32Len for T where
T: AsRef<[u8]>,
impl<T> Base32Len for T where
T: AsRef<[u8]>,
fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToHex for T where
T: LowerHex,
impl<T> ToHex for T where
T: LowerHex,
impl<T> ToHex for T where
T: LowerHex,
impl<T> ToHex for T where
T: LowerHex,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more