Struct ckb_app_config::NotifyConfig
source · pub struct NotifyConfig {
pub new_block_notify_script: Option<String>,
pub network_alert_notify_script: Option<String>,
pub notify_tx_timeout: Option<u64>,
pub notify_alert_timeout: Option<u64>,
pub script_timeout: Option<u64>,
}
Expand description
Notify config options.
Fields§
§new_block_notify_script: Option<String>
An executable script to be called whenever there’s a new block in the canonical chain.
The script is called with the block hash as the argument.
network_alert_notify_script: Option<String>
An executable script to be called whenever there’s a new network alert received.
The script is called with the alert message as the argument.
notify_tx_timeout: Option<u64>
Notify tx timeout in milliseconds
notify_alert_timeout: Option<u64>
Notify alert timeout in milliseconds
script_timeout: Option<u64>
Notify alert timeout in milliseconds
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl PartialEq for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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