NodeExt

Trait NodeExt 

Source
pub trait NodeExt: Node {
    // Provided methods
    fn query_service(
        &self,
        head: HeaderHash,
        id: ServiceId,
    ) -> impl Future<Output = Result<(Service, CodeInfo<CrateInfo>), Error>> + Send { ... }
    fn wait_for_sync(&self) -> impl Future<Output = Result<(), Error>> + Send { ... }
}

Provided Methods§

Source

fn query_service( &self, head: HeaderHash, id: ServiceId, ) -> impl Future<Output = Result<(Service, CodeInfo<CrateInfo>), Error>> + Send

Source

fn wait_for_sync(&self) -> impl Future<Output = Result<(), Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Node + ?Sized> NodeExt for T