Struct windows::Media::PlayTo::PlayToReceiver
pub struct PlayToReceiver(/* private fields */);
Implementations§
§impl PlayToReceiver
impl PlayToReceiver
pub fn new() -> Result<Self>
pub fn PlayRequested<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<PlayToReceiver, IInspectable>>,
pub fn RemovePlayRequested(&self, token: EventRegistrationToken) -> Result<()>
pub fn PauseRequested<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<PlayToReceiver, IInspectable>>,
pub fn RemovePauseRequested(&self, token: EventRegistrationToken) -> Result<()>
pub fn SourceChangeRequested<P0>( &self, handler: P0, ) -> Result<EventRegistrationToken>
pub fn RemoveSourceChangeRequested( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn PlaybackRateChangeRequested<P0>( &self, handler: P0, ) -> Result<EventRegistrationToken>
pub fn RemovePlaybackRateChangeRequested( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn CurrentTimeChangeRequested<P0>( &self, handler: P0, ) -> Result<EventRegistrationToken>
pub fn RemoveCurrentTimeChangeRequested( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn MuteChangeRequested<P0>( &self, handler: P0, ) -> Result<EventRegistrationToken>
pub fn RemoveMuteChangeRequested( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn VolumeChangeRequested<P0>( &self, handler: P0, ) -> Result<EventRegistrationToken>
pub fn RemoveVolumeChangeRequested( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn TimeUpdateRequested<P0>(
&self,
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<PlayToReceiver, IInspectable>>,
pub fn RemoveTimeUpdateRequested( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn StopRequested<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<PlayToReceiver, IInspectable>>,
pub fn RemoveStopRequested(&self, token: EventRegistrationToken) -> Result<()>
pub fn NotifyVolumeChange(&self, volume: f64, mute: bool) -> Result<()>
pub fn NotifyRateChange(&self, rate: f64) -> Result<()>
pub fn NotifyLoadedMetadata(&self) -> Result<()>
pub fn NotifyTimeUpdate(&self, currenttime: TimeSpan) -> Result<()>
pub fn NotifyDurationChange(&self, duration: TimeSpan) -> Result<()>
pub fn NotifySeeking(&self) -> Result<()>
pub fn NotifySeeked(&self) -> Result<()>
pub fn NotifyPaused(&self) -> Result<()>
pub fn NotifyPlaying(&self) -> Result<()>
pub fn NotifyEnded(&self) -> Result<()>
pub fn NotifyError(&self) -> Result<()>
pub fn NotifyStopped(&self) -> Result<()>
pub fn FriendlyName(&self) -> Result<HSTRING>
pub fn SetFriendlyName(&self, value: &HSTRING) -> Result<()>
pub fn SetSupportsImage(&self, value: bool) -> Result<()>
pub fn SupportsImage(&self) -> Result<bool>
pub fn SetSupportsAudio(&self, value: bool) -> Result<()>
pub fn SupportsAudio(&self) -> Result<bool>
pub fn SetSupportsVideo(&self, value: bool) -> Result<()>
pub fn SupportsVideo(&self) -> Result<bool>
pub fn Properties(&self) -> Result<IPropertySet>
pub fn StartAsync(&self) -> Result<IAsyncAction>
pub fn StopAsync(&self) -> Result<IAsyncAction>
Trait Implementations§
§impl CanInto<IInspectable> for PlayToReceiver
impl CanInto<IInspectable> for PlayToReceiver
§impl CanInto<IUnknown> for PlayToReceiver
impl CanInto<IUnknown> for PlayToReceiver
§impl Clone for PlayToReceiver
impl Clone for PlayToReceiver
§fn clone(&self) -> PlayToReceiver
fn clone(&self) -> PlayToReceiver
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 PlayToReceiver
impl Debug for PlayToReceiver
§impl From<&PlayToReceiver> for &IInspectable
impl From<&PlayToReceiver> for &IInspectable
§fn from(value: &PlayToReceiver) -> Self
fn from(value: &PlayToReceiver) -> Self
Converts to this type from the input type.
§impl From<&PlayToReceiver> for &IUnknown
impl From<&PlayToReceiver> for &IUnknown
§fn from(value: &PlayToReceiver) -> Self
fn from(value: &PlayToReceiver) -> Self
Converts to this type from the input type.
§impl From<PlayToReceiver> for IInspectable
impl From<PlayToReceiver> for IInspectable
§fn from(value: PlayToReceiver) -> Self
fn from(value: PlayToReceiver) -> Self
Converts to this type from the input type.
§impl From<PlayToReceiver> for IUnknown
impl From<PlayToReceiver> for IUnknown
§fn from(value: PlayToReceiver) -> Self
fn from(value: PlayToReceiver) -> Self
Converts to this type from the input type.
§impl Interface for PlayToReceiver
impl Interface for PlayToReceiver
§const IID: GUID = <IPlayToReceiver as windows_core::Interface>::IID
const IID: GUID = <IPlayToReceiver as windows_core::Interface>::IID
The
GUID
associated with the interface.§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for PlayToReceiver
impl PartialEq for PlayToReceiver
§fn eq(&self, other: &PlayToReceiver) -> bool
fn eq(&self, other: &PlayToReceiver) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PlayToReceiver
impl StructuralPartialEq for PlayToReceiver
Auto Trait Implementations§
impl Freeze for PlayToReceiver
impl RefUnwindSafe for PlayToReceiver
impl !Send for PlayToReceiver
impl !Sync for PlayToReceiver
impl Unpin for PlayToReceiver
impl UnwindSafe for PlayToReceiver
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)