pub struct RpcState {
pub validator_id: u64,
pub mempool: Arc<Mempool>,
pub status_rx: Receiver<(u64, u64)>,
}Expand description
Shared state accessible by the RPC server
Fields§
§validator_id: u64§mempool: Arc<Mempool>§status_rx: Receiver<(u64, u64)>Auto Trait Implementations§
impl Freeze for RpcState
impl !RefUnwindSafe for RpcState
impl Send for RpcState
impl Sync for RpcState
impl Unpin for RpcState
impl UnsafeUnpin for RpcState
impl !UnwindSafe for RpcState
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