pub struct Condition {
pub csv: Option<Sequence>,
pub timelock: Option<LockTime>,
}
Expand description
An extra condition that must be satisfied but that is out of control of the user
TODO: use bitcoin::LockTime
and bitcoin::Sequence
Fields§
§csv: Option<Sequence>
Optional CheckSequenceVerify condition
timelock: Option<LockTime>
Optional timelock condition
Implementations§
Trait Implementations§
Source§impl PartialOrd for Condition
impl PartialOrd for Condition
impl Copy for Condition
impl Eq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more