Trait rpc_toolkit::Context

source ·
pub trait Context {
    // Provided methods
    fn protocol(&self) -> &str { ... }
    fn host(&self) -> Host<&str> { ... }
    fn port(&self) -> u16 { ... }
    fn path(&self) -> &str { ... }
    fn url(&self) -> Url { ... }
    fn client(&self) -> &Client { ... }
}

Provided Methods§

source

fn protocol(&self) -> &str

source

fn host(&self) -> Host<&str>

source

fn port(&self) -> u16

source

fn path(&self) -> &str

source

fn url(&self) -> Url

source

fn client(&self) -> &Client

Trait Implementations§

source§

impl<'a, T: Context + 'a> From<T> for Box<dyn Context + 'a>

source§

fn from(ctx: T) -> Self

Converts to this type from the input type.

Implementations on Foreign Types§

source§

impl Context for ()

Implementors§