Struct parity_local_store::LocalDataStore
source · [−]pub struct LocalDataStore<T: NodeInfo> { /* private fields */ }
Expand description
Manages local node data.
In specific, this will be used to store things like unpropagated local transactions and the node security level.
Implementations
sourceimpl<T: NodeInfo> LocalDataStore<T>
impl<T: NodeInfo> LocalDataStore<T>
Trait Implementations
sourceimpl<T: NodeInfo> Drop for LocalDataStore<T>
impl<T: NodeInfo> Drop for LocalDataStore<T>
sourceimpl<T: NodeInfo, M: Send + Sync + 'static> IoHandler<M> for LocalDataStore<T>
impl<T: NodeInfo, M: Send + Sync + 'static> IoHandler<M> for LocalDataStore<T>
sourcefn initialize(&self, io: &IoContext<M>)
fn initialize(&self, io: &IoContext<M>)
Initialize the handler
sourcefn timeout(&self, _io: &IoContext<M>, timer: TimerToken)
fn timeout(&self, _io: &IoContext<M>, timer: TimerToken)
Timer function called after a timeout created with HandlerIo::timeout
.
sourcefn message(&self, _io: &IoContext<Message>, _message: &Message)
fn message(&self, _io: &IoContext<Message>, _message: &Message)
Called when a broadcasted message is received. The message can only be sent from a different IO handler.
sourcefn stream_hup(&self, _io: &IoContext<Message>, _stream: usize)
fn stream_hup(&self, _io: &IoContext<Message>, _stream: usize)
Called when an IO stream gets closed
sourcefn stream_readable(&self, _io: &IoContext<Message>, _stream: usize)
fn stream_readable(&self, _io: &IoContext<Message>, _stream: usize)
Called when an IO stream can be read from
sourcefn stream_writable(&self, _io: &IoContext<Message>, _stream: usize)
fn stream_writable(&self, _io: &IoContext<Message>, _stream: usize)
Called when an IO stream can be written to
sourcefn register_stream(
&self,
_stream: usize,
_reg: Token,
_event_loop: &mut EventLoop<IoManager<Message>>
)
fn register_stream(
&self,
_stream: usize,
_reg: Token,
_event_loop: &mut EventLoop<IoManager<Message>>
)
Register a new stream with the event loop
sourcefn update_stream(
&self,
_stream: usize,
_reg: Token,
_event_loop: &mut EventLoop<IoManager<Message>>
)
fn update_stream(
&self,
_stream: usize,
_reg: Token,
_event_loop: &mut EventLoop<IoManager<Message>>
)
Re-register a stream with the event loop
sourcefn deregister_stream(
&self,
_stream: usize,
_event_loop: &mut EventLoop<IoManager<Message>>
)
fn deregister_stream(
&self,
_stream: usize,
_event_loop: &mut EventLoop<IoManager<Message>>
)
Deregister a stream. Called whenstream is removed from event loop
Auto Trait Implementations
impl<T> !RefUnwindSafe for LocalDataStore<T>
impl<T> Send for LocalDataStore<T>
impl<T> Sync for LocalDataStore<T>
impl<T> Unpin for LocalDataStore<T> where
T: Unpin,
impl<T> !UnwindSafe for LocalDataStore<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more