Backend

Trait Backend 

Source
pub trait Backend {
    type Transport;

    // Required methods
    fn is_available(&self) -> bool;
    fn name(&self) -> &'static str;
}
Expand description

Trait for session backends.

Required Associated Types§

Source

type Transport

The transport type produced by this backend.

Required Methods§

Source

fn is_available(&self) -> bool

Check if the backend is available.

Source

fn name(&self) -> &'static str

Get the backend name.

Implementors§