Skip to main content

Contextual

Trait Contextual 

Source
pub trait Contextual {
    // Required method
    fn context(&self) -> Context;
}

Required Methods§

Source

fn context(&self) -> Context

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<L: Contextual> Contextual for LaneGuard<L>

Source§

impl<P: Protocol> Contextual for LocalServiceLane<P>

r[impl jetstream.session.local] An in-process session authenticates nothing, so the callee sees an empty context rather than a fabricated identity.

Source§

impl<P: Protocol> Contextual for NoServiceLane<P>

Source§

impl<U> Contextual for Framed<TcpStream, U>

Available on native only.
Source§

impl<U> Contextual for Framed<TcpStream, U>

Available on crate feature turmoil only.
Source§

impl<U> Contextual for Framed<UnixStream, U>

Available on tokio_unix only.