pub struct DescriptorMatch {
pub descriptor: String,
pub branch: u32,
pub derivation_index: u32,
}Expand description
Descriptor attribution for a ScriptMatched: which
descriptor watch a matched scripthash belongs to, and the exact coordinate the
server derived it at.
Fields§
§descriptor: StringThe descriptor string the watch was registered with.
branch: u32The 0-based BIP-389 multipath branch the matched script came from (<0;1>
→ external = 0, change = 1; always 0 for a single-path descriptor).
derivation_index: u32The absolute derivation index of the matched script — ready to use, no
gap_limit arithmetic. (branch, derivation_index) is exactly what the
server derived (correct for fixed and multipath descriptors alike); the
server still tracks no derivation progress — advancing your gap limit
remains your concern.
Trait Implementations§
Source§impl Clone for DescriptorMatch
impl Clone for DescriptorMatch
Source§impl Debug for DescriptorMatch
impl Debug for DescriptorMatch
impl Eq for DescriptorMatch
Source§impl PartialEq for DescriptorMatch
impl PartialEq for DescriptorMatch
impl StructuralPartialEq for DescriptorMatch
Auto Trait Implementations§
impl Freeze for DescriptorMatch
impl RefUnwindSafe for DescriptorMatch
impl Send for DescriptorMatch
impl Sync for DescriptorMatch
impl Unpin for DescriptorMatch
impl UnsafeUnpin for DescriptorMatch
impl UnwindSafe for DescriptorMatch
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§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<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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request