pub trait CallProxyInterface: Send + Sync {
type WatchStateResponseFut: Future<Output = Result<CallState, Error>> + Send;
type SendDtmfCodeResponseFut: Future<Output = Result<CallSendDtmfCodeResult, Error>> + Send;
// Required methods
fn watch_state(&self) -> Self::WatchStateResponseFut;
fn request_hold(&self) -> Result<(), Error>;
fn request_active(&self) -> Result<(), Error>;
fn request_terminate(&self) -> Result<(), Error>;
fn request_transfer_audio(&self) -> Result<(), Error>;
fn send_dtmf_code(&self, code: DtmfCode) -> Self::SendDtmfCodeResponseFut;
}Required Associated Types§
type WatchStateResponseFut: Future<Output = Result<CallState, Error>> + Send
type SendDtmfCodeResponseFut: Future<Output = Result<CallSendDtmfCodeResult, Error>> + Send
Required Methods§
fn watch_state(&self) -> Self::WatchStateResponseFut
fn request_hold(&self) -> Result<(), Error>
fn request_active(&self) -> Result<(), Error>
fn request_terminate(&self) -> Result<(), Error>
fn request_transfer_audio(&self) -> Result<(), Error>
fn send_dtmf_code(&self, code: DtmfCode) -> Self::SendDtmfCodeResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".