pub struct HttpRpcState {
pub rpc: Arc<RpcState>,
pub event_tx: Sender<ChainEvent>,
pub ip_limiter: Mutex<PerIpRateLimiter>,
/* private fields */
}Expand description
Shared state for the HTTP RPC server.
Fields§
§rpc: Arc<RpcState>§event_tx: Sender<ChainEvent>§ip_limiter: Mutex<PerIpRateLimiter>Per-IP rate limiter for submit_tx (C-2: prevents bypass via multiple connections).
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