Struct sc_service_test::TestNetComponents [−][src]
pub struct TestNetComponents<TBl: BlockT, TBackend, TExec, TRtApi, TExPool> { /* fields omitted */ }
Implementations
impl<TBl: BlockT, TBackend, TExec, TRtApi, TExPool> TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool>
impl<TBl: BlockT, TBackend, TExec, TRtApi, TExPool> TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool>
pub fn new(
task_manager: TaskManager,
client: Arc<Client<TBackend, TExec, TBl, TRtApi>>,
network: Arc<NetworkService<TBl, <TBl as BlockT>::Hash>>,
transaction_pool: Arc<TExPool>
) -> Self
Trait Implementations
impl<TBl: BlockT, TBackend, TExec, TRtApi, TExPool> Clone for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool>
impl<TBl: BlockT, TBackend, TExec, TRtApi, TExPool> Clone for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool>
impl<TBl: BlockT, TBackend, TExec, TRtApi, TExPool> Future for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool>
impl<TBl: BlockT, TBackend, TExec, TRtApi, TExPool> Future for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool>
The type of error that this future will resolve with if it fails in a normal fashion. Read more
Query this future to see if its value has become available, registering interest if it is not. Read more
Block the current thread until this future is resolved. Read more
Map this future’s result to a different type, returning a new future of the resulting type. Read more
Map this future’s error to a different error, returning a new future. Read more
Map this future’s error to any error implementing From
for
this future’s Error
, returning a new future. Read more
Chain on a computation for when a future finished, passing the result of
the future to the provided closure f
. Read more
Execute another future after this one has resolved successfully. Read more
Execute another future if this one resolves with an error. Read more
fn select<B>(self, other: B) -> Select<Self, <B as IntoFuture>::Future> where
B: IntoFuture<Item = Self::Item, Error = Self::Error>,
fn select<B>(self, other: B) -> Select<Self, <B as IntoFuture>::Future> where
B: IntoFuture<Item = Self::Item, Error = Self::Error>,
Waits for either one of two futures to complete. Read more
Waits for either one of two differently-typed futures to complete. Read more
fn join<B>(self, other: B) -> Join<Self, <B as IntoFuture>::Future> where
B: IntoFuture<Error = Self::Error>,
fn join<B>(self, other: B) -> Join<Self, <B as IntoFuture>::Future> where
B: IntoFuture<Error = Self::Error>,
Joins the result of two futures, waiting for them both to complete. Read more
fn join3<B, C>(
self,
b: B,
c: C
) -> Join3<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future> where
C: IntoFuture<Error = Self::Error>,
B: IntoFuture<Error = Self::Error>,
fn join3<B, C>(
self,
b: B,
c: C
) -> Join3<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future> where
C: IntoFuture<Error = Self::Error>,
B: IntoFuture<Error = Self::Error>,
Same as join
, but with more futures.
fn join4<B, C, D>(
self,
b: B,
c: C,
d: D
) -> Join4<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future, <D as IntoFuture>::Future> where
C: IntoFuture<Error = Self::Error>,
B: IntoFuture<Error = Self::Error>,
D: IntoFuture<Error = Self::Error>,
fn join4<B, C, D>(
self,
b: B,
c: C,
d: D
) -> Join4<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future, <D as IntoFuture>::Future> where
C: IntoFuture<Error = Self::Error>,
B: IntoFuture<Error = Self::Error>,
D: IntoFuture<Error = Self::Error>,
Same as join
, but with more futures.
fn join5<B, C, D, E>(
self,
b: B,
c: C,
d: D,
e: E
) -> Join5<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future, <D as IntoFuture>::Future, <E as IntoFuture>::Future> where
C: IntoFuture<Error = Self::Error>,
E: IntoFuture<Error = Self::Error>,
B: IntoFuture<Error = Self::Error>,
D: IntoFuture<Error = Self::Error>,
fn join5<B, C, D, E>(
self,
b: B,
c: C,
d: D,
e: E
) -> Join5<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future, <D as IntoFuture>::Future, <E as IntoFuture>::Future> where
C: IntoFuture<Error = Self::Error>,
E: IntoFuture<Error = Self::Error>,
B: IntoFuture<Error = Self::Error>,
D: IntoFuture<Error = Self::Error>,
Same as join
, but with more futures.
Convert this future into a single element stream. Read more
fn flatten(self) -> Flatten<Self> where
Self::Item: IntoFuture,
<Self::Item as IntoFuture>::Error: From<Self::Error>,
fn flatten(self) -> Flatten<Self> where
Self::Item: IntoFuture,
<Self::Item as IntoFuture>::Error: From<Self::Error>,
Flatten the execution of this future when the successful result of this future is itself another future. Read more
fn flatten_stream(self) -> FlattenStream<Self> where
Self::Item: Stream,
<Self::Item as Stream>::Error == Self::Error,
fn flatten_stream(self) -> FlattenStream<Self> where
Self::Item: Stream,
<Self::Item as Stream>::Error == Self::Error,
Flatten the execution of this future when the successful result of this future is a stream. Read more
Fuse a future such that poll
will never again be called once it has
completed. Read more
Do something with the item of a future, passing it on. Read more
Catches unwinding panics while polling the future. Read more
Create a cloneable handle to this future where all handles will resolve to the same result. Read more
impl<TBl, TBackend, TExec, TRtApi, TExPool> TestNetNode for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool> where
TBl: BlockT,
TBackend: Backend<TBl> + Send + Sync + 'static,
TExec: CallExecutor<TBl> + Send + Sync + 'static,
TRtApi: Send + Sync + 'static,
TExPool: TransactionPool<Block = TBl> + Send + Sync + 'static,
impl<TBl, TBackend, TExec, TRtApi, TExPool> TestNetNode for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool> where
TBl: BlockT,
TBackend: Backend<TBl> + Send + Sync + 'static,
TExec: CallExecutor<TBl> + Send + Sync + 'static,
TRtApi: Send + Sync + 'static,
TExPool: TransactionPool<Block = TBl> + Send + Sync + 'static,
type Block = TBl
type Backend = TBackend
type Executor = TExec
type RuntimeApi = TRtApi
type TransactionPool = TExPool
Auto Trait Implementations
impl<TBl, TBackend, TExec, TRtApi, TExPool> !RefUnwindSafe for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool>
impl<TBl, TBackend, TExec, TRtApi, TExPool> Send for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool> where
TBackend: Send + Sync,
TExPool: Send + Sync,
TExec: Send + Sync,
TRtApi: Send + Sync,
impl<TBl, TBackend, TExec, TRtApi, TExPool> Sync for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool> where
TBackend: Send + Sync,
TExPool: Send + Sync,
TExec: Send + Sync,
TRtApi: Send + Sync,
impl<TBl, TBackend, TExec, TRtApi, TExPool> Unpin for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool>
impl<TBl, TBackend, TExec, TRtApi, TExPool> !UnwindSafe for TestNetComponents<TBl, TBackend, TExec, TRtApi, TExPool>
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
impl<Fut> Future01CompatExt for Fut where
Fut: Future,
impl<Fut> Future01CompatExt for Fut where
Fut: Future,
fn compat(self) -> Compat01As03<Self>
fn compat(self) -> Compat01As03<Self>
Converts a futures 0.1
Future<Item = T, Error = E>
into a futures 0.3
Future<Output = Result<T, E>>
. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more