#[non_exhaustive]pub struct WatchAddRejected {Show 13 fields
pub kind: WatchAddKind,
pub reason: WatchAddRejectReason,
pub required: u64,
pub held: u64,
pub quota: u64,
pub retry_after_secs: u32,
pub scripthashes: Vec<Vec<u8>>,
pub outpoints: Vec<(Vec<u8>, u32)>,
pub txids: Vec<Vec<u8>>,
pub depth_alarms: Vec<(Vec<u8>, u32)>,
pub descriptor: Option<RejectedDescriptor>,
pub prefixes: Vec<(Vec<u8>, u32)>,
pub scan_pubkeys: Vec<Vec<u8>>,
}Expand description
The payload of Event::WatchAddRejected: which add was refused, why, and
the items it named. Only the item field for kind is set.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: WatchAddKindWhich kind of add was refused.
reason: WatchAddRejectReasonWhy it was refused.
required: u64QuotaExceeded: the units the
refused items cost. CapExceeded:
the count the add would have reached. 0 otherwise.
held: u64QuotaExceeded: the units the token already holds. 0 otherwise.
quota: u64QuotaExceeded: the token’s unit quota. CapExceeded: the cap. 0
otherwise.
retry_after_secs: u32RateLimited: seconds until the
rate limit admits another add. 0 otherwise.
scripthashes: Vec<Vec<u8>>Refused scripthashes (32 bytes each).
outpoints: Vec<(Vec<u8>, u32)>Refused outpoints, as (txid, vout) (txid in internal byte order).
txids: Vec<Vec<u8>>Refused lifecycle watches, by txid.
depth_alarms: Vec<(Vec<u8>, u32)>Refused depth alarms, as (txid, depth).
descriptor: Option<RejectedDescriptor>The refused descriptor and the window it asked for.
prefixes: Vec<(Vec<u8>, u32)>Refused script prefixes, as (prefix, bits) with the prefix masked to
bits.
scan_pubkeys: Vec<Vec<u8>>Refused silent-payment targets, by scan pubkey b_scan·G (33 bytes).
Trait Implementations§
Source§impl Clone for WatchAddRejected
impl Clone for WatchAddRejected
Source§impl Debug for WatchAddRejected
impl Debug for WatchAddRejected
impl Eq for WatchAddRejected
Source§impl PartialEq for WatchAddRejected
impl PartialEq for WatchAddRejected
impl StructuralPartialEq for WatchAddRejected
Auto Trait Implementations§
impl Freeze for WatchAddRejected
impl RefUnwindSafe for WatchAddRejected
impl Send for WatchAddRejected
impl Sync for WatchAddRejected
impl Unpin for WatchAddRejected
impl UnsafeUnpin for WatchAddRejected
impl UnwindSafe for WatchAddRejected
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
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
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
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>
T in a tonic::Request