Trait trillium_conn_id::ConnIdExt

source ·
pub trait ConnIdExt {
    // Required method
    fn id(&self) -> &str;
}
Expand description

Extension trait to retrieve an id generated by the ConnId handler

Required Methods§

source

fn id(&self) -> &str

Retrieves the id for this conn. This method will panic if it is run before the ConnId handler.

Implementors§

source§

impl<ConnLike> ConnIdExt for ConnLike
where ConnLike: AsRef<StateSet>,