Skip to main content

ConnIdExt

Trait 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.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

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