Struct windows::Media::Devices::CallControl
pub struct CallControl(/* private fields */);
Implementations§
§impl CallControl
impl CallControl
pub fn IndicateNewIncomingCall( &self, enableringer: bool, callerid: &HSTRING ) -> Result<u64>
pub fn IndicateNewOutgoingCall(&self) -> Result<u64>
pub fn IndicateActiveCall(&self, calltoken: u64) -> Result<()>
pub fn EndCall(&self, calltoken: u64) -> Result<()>
pub fn HasRinger(&self) -> Result<bool>
pub fn AnswerRequested<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: IntoParam<CallControlEventHandler>,
pub fn RemoveAnswerRequested(&self, token: EventRegistrationToken) -> Result<()>
pub fn HangUpRequested<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: IntoParam<CallControlEventHandler>,
pub fn RemoveHangUpRequested(&self, token: EventRegistrationToken) -> Result<()>
pub fn DialRequested<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: IntoParam<DialRequestedEventHandler>,
pub fn RemoveDialRequested(&self, token: EventRegistrationToken) -> Result<()>
pub fn RedialRequested<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: IntoParam<RedialRequestedEventHandler>,
pub fn RemoveRedialRequested(&self, token: EventRegistrationToken) -> Result<()>
pub fn KeypadPressed<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: IntoParam<KeypadPressedEventHandler>,
pub fn RemoveKeypadPressed(&self, token: EventRegistrationToken) -> Result<()>
pub fn AudioTransferRequested<P0>(
&self,
handler: P0
) -> Result<EventRegistrationToken>where
P0: IntoParam<CallControlEventHandler>,
pub fn RemoveAudioTransferRequested( &self, token: EventRegistrationToken ) -> Result<()>
pub fn GetDefault() -> Result<CallControl>
pub fn FromId(deviceid: &HSTRING) -> Result<CallControl>
Trait Implementations§
§impl Clone for CallControl
impl Clone for CallControl
§fn clone(&self) -> CallControl
fn clone(&self) -> CallControl
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for CallControl
impl Debug for CallControl
§impl From<&CallControl> for &IInspectable
impl From<&CallControl> for &IInspectable
§fn from(value: &CallControl) -> Self
fn from(value: &CallControl) -> Self
Converts to this type from the input type.
§impl From<&CallControl> for &IUnknown
impl From<&CallControl> for &IUnknown
§fn from(value: &CallControl) -> Self
fn from(value: &CallControl) -> Self
Converts to this type from the input type.
§impl From<CallControl> for IInspectable
impl From<CallControl> for IInspectable
§fn from(value: CallControl) -> Self
fn from(value: CallControl) -> Self
Converts to this type from the input type.
§impl From<CallControl> for IUnknown
impl From<CallControl> for IUnknown
§fn from(value: CallControl) -> Self
fn from(value: CallControl) -> Self
Converts to this type from the input type.
§impl Interface for CallControl
impl Interface for CallControl
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for CallControl
impl PartialEq for CallControl
§fn eq(&self, other: &CallControl) -> bool
fn eq(&self, other: &CallControl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CallControl
impl Send for CallControl
impl StructuralPartialEq for CallControl
impl Sync for CallControl
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more