Trait SessionExt

Source
pub trait SessionExt: FSNewType<Inner = *mut switch_core_session_t> {
    // Provided methods
    fn get_uuid(&self) -> &CStr { ... }
    fn get_channel(&self) -> Option<Channel<'_>> { ... }
}

Provided Methods§

Source

fn get_uuid(&self) -> &CStr

Retrieve the unique identifier from a session. See: switch_core_session_get_uuid.

Source

fn get_channel(&self) -> Option<Channel<'_>>

Retrieve a reference to the channel object associated with a given session. See: switch_core_session_get_channel.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§