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>
pub fn RemovePlayRequested(&self, token: EventRegistrationToken) -> Result<()>
pub fn PauseRequested<P0>(&self, handler: P0) -> Result<EventRegistrationToken>
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>
pub fn RemoveTimeUpdateRequested( &self, token: EventRegistrationToken ) -> Result<()>
pub fn StopRequested<P0>(&self, handler: P0) -> Result<EventRegistrationToken>
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 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
§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 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 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