pub trait Backend: Send {
// Required method
fn spawn_session(
&self,
rt: &Handle,
name: &str,
account: &Account,
options: &BackendOptions,
) -> Result<Session>;
}Expand description
A backend provides SIP user-agent functionality — library init, event
translation and the phone command interface. The FFI backend links
libbaresip directly (statically with vendored, or dynamically via
pkg-config).
Required Methods§
Sourcefn spawn_session(
&self,
rt: &Handle,
name: &str,
account: &Account,
options: &BackendOptions,
) -> Result<Session>
fn spawn_session( &self, rt: &Handle, name: &str, account: &Account, options: &BackendOptions, ) -> Result<Session>
Spawn the backend (process or library), start I/O tasks on rt, and
return a Session handle. The session owns the event stream, phone
command interface, and optional header-polling closure. Connect retry
happens internally; AppEvent::BackendConnectFailed lands in the event
stream on failure.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".