pub struct CallSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CallSynchronousProxy
impl CallSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CallEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CallEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn watch_state(
&self,
___deadline: MonotonicInstant,
) -> Result<CallState, Error>
pub fn watch_state( &self, ___deadline: MonotonicInstant, ) -> Result<CallState, Error>
A hanging get method for call state. See the CallState
documentation
for information on possible states.
Sourcepub fn request_hold(&self) -> Result<(), Error>
pub fn request_hold(&self) -> Result<(), Error>
Request that the Call be set to the ONGOING_HELD CallState
Sourcepub fn request_active(&self) -> Result<(), Error>
pub fn request_active(&self) -> Result<(), Error>
Request that the Call be set to the ONGOING_ACTIVE CallState. This has the side effect of placing all other Calls that are routed to this peer in the ONGOING_HELD call state if it succeeds.
Sourcepub fn request_terminate(&self) -> Result<(), Error>
pub fn request_terminate(&self) -> Result<(), Error>
Request that the Call be TERMINATED.
Sourcepub fn request_transfer_audio(&self) -> Result<(), Error>
pub fn request_transfer_audio(&self) -> Result<(), Error>
Request that the Call’s audio be transfered to the Audio Gateway and the call state set to TRANSFERRED_TO_AG.
Sourcepub fn send_dtmf_code(
&self,
code: DtmfCode,
___deadline: MonotonicInstant,
) -> Result<CallSendDtmfCodeResult, Error>
pub fn send_dtmf_code( &self, code: DtmfCode, ___deadline: MonotonicInstant, ) -> Result<CallSendDtmfCodeResult, Error>
Send a code that the call manager or remote audio gateway peer should transmit to its network connection. The request returns after the code has been transmitted to the network.
Can return an error if the call manager or peer failed to transmit the code to the network.
Trait Implementations§
Source§impl Debug for CallSynchronousProxy
impl Debug for CallSynchronousProxy
Source§impl SynchronousProxy for CallSynchronousProxy
impl SynchronousProxy for CallSynchronousProxy
Source§type Protocol = CallMarker
type Protocol = CallMarker
Proxy
controls.