pub trait TxoSeal: From<Outpoint> {
// Required methods
fn method(&self) -> CloseMethod;
fn txid(&self) -> Option<Txid>;
fn vout(&self) -> Vout;
fn outpoint(&self) -> Option<Outpoint>;
fn txid_or(&self, default_txid: Txid) -> Txid;
fn outpoint_or(&self, default_txid: Txid) -> Outpoint;
}
Expand description
Methods common for all transaction-output based seal types.
Required Methods§
Sourcefn method(&self) -> CloseMethod
fn method(&self) -> CloseMethod
Returns method which must be used for seal closing.
Sourcefn txid_or(&self, default_txid: Txid) -> Txid
fn txid_or(&self, default_txid: Txid) -> Txid
Returns Txid
part of the seal definition, if known, or the provided
default_txid
.
Sourcefn outpoint_or(&self, default_txid: Txid) -> Outpoint
fn outpoint_or(&self, default_txid: Txid) -> Outpoint
Returns Outpoint
defining the seal, if txid is known, or constructs
one using the provided default_txid
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.