pub trait ApiInterface {
const NAME: &'static str;
const DESC: &'static str;
// Required methods
fn api_fn(
cmd: &str,
session: Option<&Session>,
stream: StreamHandle,
) -> switch_status_t;
unsafe extern "C" fn api_fn_raw(
cmd: *const c_char,
session: *mut switch_core_session_t,
stream: *mut switch_stream_handle_t,
) -> switch_status_t;
}Required Associated Constants§
Required Methods§
fn api_fn( cmd: &str, session: Option<&Session>, stream: StreamHandle, ) -> switch_status_t
unsafe extern "C" fn api_fn_raw( cmd: *const c_char, session: *mut switch_core_session_t, stream: *mut switch_stream_handle_t, ) -> switch_status_t
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.