Struct filament_node::consensus::Worker
source · struct Worker {
app: App,
queue: Receiver<Message>,
storage: Storage,
}Fields§
§app: App§queue: Receiver<Message>§storage: StorageImplementations§
source§impl Worker
impl Worker
fn new(storage: Storage, queue: Receiver<Message>) -> Self
async fn run(self) -> Result<()>
async fn init_chain(&mut self, init_chain: InitChain) -> Result<InitChain>
async fn begin_block(&mut self, begin_block: BeginBlock) -> Result<BeginBlock>
async fn deliver_tx(&mut self, deliver_tx: DeliverTx) -> Result<DeliverTx>
async fn end_block(&mut self, end_block: EndBlock) -> Result<EndBlock>
async fn commit(&mut self) -> Result<Commit>
Auto Trait Implementations§
impl !RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl !UnwindSafe for Worker
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request