pub enum CallRequest {
WatchState {
responder: CallWatchStateResponder,
},
RequestHold {
control_handle: CallControlHandle,
},
RequestActive {
control_handle: CallControlHandle,
},
RequestTerminate {
control_handle: CallControlHandle,
},
RequestTransferAudio {
control_handle: CallControlHandle,
},
SendDtmfCode {
code: DtmfCode,
responder: CallSendDtmfCodeResponder,
},
}
Expand description
Controls the lifecycle of a call that has been routed through a headset.
Variants§
WatchState
Fields
responder: CallWatchStateResponder
A hanging get method for call state. See the CallState
documentation
for information on possible states.
RequestHold
Fields
control_handle: CallControlHandle
Request that the Call be set to the ONGOING_HELD CallState
RequestActive
Fields
control_handle: CallControlHandle
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.
RequestTerminate
Fields
control_handle: CallControlHandle
Request that the Call be TERMINATED.
RequestTransferAudio
Fields
control_handle: CallControlHandle
Request that the Call’s audio be transfered to the Audio Gateway and the call state set to TRANSFERRED_TO_AG.
SendDtmfCode
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.
Implementations§
source§impl CallRequest
impl CallRequest
pub fn into_watch_state(self) -> Option<CallWatchStateResponder>
pub fn into_request_hold(self) -> Option<CallControlHandle>
pub fn into_request_active(self) -> Option<CallControlHandle>
pub fn into_request_terminate(self) -> Option<CallControlHandle>
pub fn into_request_transfer_audio(self) -> Option<CallControlHandle>
pub fn into_send_dtmf_code( self ) -> Option<(DtmfCode, CallSendDtmfCodeResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL