ic_web3_rs::api

Trait Namespace

Source
pub trait Namespace<T: Transport>: Clone {
    // Required methods
    fn new(transport: T) -> Self;
    fn transport(&self) -> &T;
}
Expand description

Common API for all namespaces

Required Methods§

Source

fn new(transport: T) -> Self

Creates new API namespace

Source

fn transport(&self) -> &T

Borrows a transport.

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§