pub struct CallProxy { /* private fields */ }
Implementations§
Source§impl CallProxy
impl CallProxy
Sourcepub fn take_event_stream(&self) -> CallEventStream
pub fn take_event_stream(&self) -> CallEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn watch_state(
&self,
) -> QueryResponseFut<CallState, DefaultFuchsiaResourceDialect>
pub fn watch_state( &self, ) -> QueryResponseFut<CallState, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<CallSendDtmfCodeResult, DefaultFuchsiaResourceDialect>
pub fn send_dtmf_code( &self, code: DtmfCode, ) -> QueryResponseFut<CallSendDtmfCodeResult, DefaultFuchsiaResourceDialect>
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 CallProxyInterface for CallProxy
impl CallProxyInterface for CallProxy
type WatchStateResponseFut = QueryResponseFut<CallState>
type SendDtmfCodeResponseFut = QueryResponseFut<Result<(), i32>>
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
Source§impl Proxy for CallProxy
impl Proxy for CallProxy
Source§type Protocol = CallMarker
type Protocol = CallMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for CallProxy
impl !RefUnwindSafe for CallProxy
impl Send for CallProxy
impl Sync for CallProxy
impl Unpin for CallProxy
impl !UnwindSafe for CallProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)