pub struct WebHooksConfig {
pub tx_received_url: Option<String>,
pub header_received_url: Option<String>,
pub block_received_url: Option<String>,
pub block_accepted_url: Option<String>,
pub nthreads: u16,
pub timeout: u16,
}Expand description
Web hooks configuration
Fields§
§tx_received_url: Option<String>url to POST transaction data when a new transaction arrives from a peer
header_received_url: Option<String>url to POST header data when a new header arrives from a peer
block_received_url: Option<String>url to POST block data when a new block arrives from a peer
block_accepted_url: Option<String>url to POST block data when a new block is accepted by our node (might be a reorg or a fork)
nthreads: u16number of worker threads in the tokio runtime
timeout: u16timeout in seconds for the http request
Trait Implementations§
Source§impl Clone for WebHooksConfig
impl Clone for WebHooksConfig
Source§fn clone(&self) -> WebHooksConfig
fn clone(&self) -> WebHooksConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebHooksConfig
impl Debug for WebHooksConfig
Source§impl Default for WebHooksConfig
impl Default for WebHooksConfig
Source§fn default() -> WebHooksConfig
fn default() -> WebHooksConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebHooksConfig
impl<'de> Deserialize<'de> for WebHooksConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WebHooksConfig
impl PartialEq for WebHooksConfig
Source§impl Serialize for WebHooksConfig
impl Serialize for WebHooksConfig
impl StructuralPartialEq for WebHooksConfig
Auto Trait Implementations§
impl Freeze for WebHooksConfig
impl RefUnwindSafe for WebHooksConfig
impl Send for WebHooksConfig
impl Sync for WebHooksConfig
impl Unpin for WebHooksConfig
impl UnwindSafe for WebHooksConfig
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<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.