pub struct LightNodeState {
pub chain_events: Sender<LightChainEvent>,
pub connected_peers: RwLock<HashMap<SocketAddr, PeerHandle>>,
pub seen_transactions: RwLock<BoundedSet<TransactionId>>,
pub seen_blocks: RwLock<BoundedSet<Hash>>,
/* private fields */
}Fields§
§chain_events: Sender<LightChainEvent>§connected_peers: RwLock<HashMap<SocketAddr, PeerHandle>>§seen_transactions: RwLock<BoundedSet<TransactionId>>§seen_blocks: RwLock<BoundedSet<Hash>>Implementations§
Source§impl LightNodeState
impl LightNodeState
pub fn new_empty(node_path: PathBuf) -> Self
pub fn meta_store(&self) -> &BlockMetaStore
Auto Trait Implementations§
impl !Freeze for LightNodeState
impl !RefUnwindSafe for LightNodeState
impl Send for LightNodeState
impl Sync for LightNodeState
impl Unpin for LightNodeState
impl !UnwindSafe for LightNodeState
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