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
A hanging get method for call state. See the CallState
documentation
for information on possible states.
Fields
responder: CallWatchStateResponder
RequestHold
Request that the Call be set to the ONGOING_HELD CallState
Fields
control_handle: CallControlHandle
RequestActive
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.
Fields
control_handle: CallControlHandle
RequestTerminate
Request that the Call be TERMINATED.
Fields
control_handle: CallControlHandle
RequestTransferAudio
Request that the Call’s audio be transfered to the Audio Gateway and the call state set to TRANSFERRED_TO_AG.
Fields
control_handle: CallControlHandle
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