pub struct HttpRpcState {
pub rpc: Arc<RpcState>,
pub event_tx: Sender<ChainEvent>,
pub tx_limiter: Mutex<TxRateLimiter>,
}Expand description
Shared state for the HTTP RPC server.
Fields§
§rpc: Arc<RpcState>§event_tx: Sender<ChainEvent>§tx_limiter: Mutex<TxRateLimiter>Global rate limiter for submit_tx across all HTTP requests (H-10).
Auto Trait Implementations§
impl !Freeze for HttpRpcState
impl !RefUnwindSafe for HttpRpcState
impl Send for HttpRpcState
impl Sync for HttpRpcState
impl Unpin for HttpRpcState
impl UnsafeUnpin for HttpRpcState
impl !UnwindSafe for HttpRpcState
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