pub struct FlowEngine { /* private fields */ }
Implementations§
Source§impl FlowEngine
impl FlowEngine
pub async fn new() -> ForgeResult<Self>
pub async fn submit_transaction( &self, params: TaskParams, ) -> ForgeResult<(u64, Receiver<TaskResult<TaskParams, ProcessorResult>>)>
pub async fn submit_transactions( &self, paramss: Vec<TaskParams>, ) -> ForgeResult<Vec<(u64, Receiver<TaskResult<TaskParams, ProcessorResult>>)>>
Sourcepub async fn shutdown(&self) -> ForgeResult<()>
pub async fn shutdown(&self) -> ForgeResult<()>
关闭流引擎
注意:由于 processor 被包装在 Arc 中,这个方法只能发送关闭信号 实际的关闭需要等到所有 Arc 引用都被释放
Trait Implementations§
Source§impl Clone for FlowEngine
impl Clone for FlowEngine
Source§fn clone(&self) -> FlowEngine
fn clone(&self) -> FlowEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FlowEngine
impl !RefUnwindSafe for FlowEngine
impl Send for FlowEngine
impl Sync for FlowEngine
impl Unpin for FlowEngine
impl !UnwindSafe for FlowEngine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more