Struct winsafe::co::ME

source ·
pub struct ME(/* private fields */);
Available on crate features kernel and mf only.
Expand description

IMFMediaEvent::GetType return value (u32).

Implementations§

source§

impl ME

source

pub const unsafe fn from_raw(v: u32) -> Self

Constructs a new object by wrapping the given integer value.

§Safety

Be sure the given value is meaningful for the actual type.

source

pub const fn raw(&self) -> u32

Returns the primitive integer underlying value.

This method is similar to Into, but it is const, therefore it can be used in const contexts.

source§

impl ME

source

pub const Unknown: Self = _

source

pub const Error: Self = _

source

pub const ExtendedType: Self = _

source

pub const NonFatalError: Self = _

source

pub const GenericV1Anchor: Self = _

source

pub const SessionUnknown: Self = _

source

pub const SessionTopologySet: Self = _

source

pub const SessionTopologiesCleared: Self = _

source

pub const SessionStarted: Self = _

source

pub const SessionPaused: Self = _

source

pub const SessionStopped: Self = _

source

pub const SessionClosed: Self = _

source

pub const SessionEnded: Self = _

source

pub const SessionRateChanged: Self = _

source

pub const SessionScrubSampleComplete: Self = _

source

pub const SessionCapabilitiesChanged: Self = _

source

pub const SessionTopologyStatus: Self = _

source

pub const SessionNotifyPresentationTime: Self = _

source

pub const NewPresentation: Self = _

source

pub const LicenseAcquisitionStart: Self = _

source

pub const LicenseAcquisitionCompleted: Self = _

source

pub const IndividualizationStart: Self = _

source

pub const IndividualizationCompleted: Self = _

source

pub const EnablerProgress: Self = _

source

pub const EnablerCompleted: Self = _

source

pub const PolicyError: Self = _

source

pub const PolicyReport: Self = _

source

pub const BufferingStarted: Self = _

source

pub const BufferingStopped: Self = _

source

pub const ConnectStart: Self = _

source

pub const ConnectEnd: Self = _

source

pub const ReconnectStart: Self = _

source

pub const ReconnectEnd: Self = _

source

pub const RendererEvent: Self = _

source

pub const SessionStreamSinkFormatChanged: Self = _

source

pub const SessionV1Anchor: Self = _

source

pub const SourceUnknown: Self = _

source

pub const SourceStarted: Self = _

source

pub const StreamStarted: Self = _

source

pub const SourceSeeked: Self = _

source

pub const StreamSeeked: Self = _

source

pub const NewStream: Self = _

source

pub const UpdatedStream: Self = _

source

pub const SourceStopped: Self = _

source

pub const StreamStopped: Self = _

source

pub const SourcePaused: Self = _

source

pub const StreamPaused: Self = _

source

pub const EndOfPresentation: Self = _

source

pub const EndOfStream: Self = _

source

pub const MediaSample: Self = _

source

pub const StreamTick: Self = _

source

pub const StreamThinMode: Self = _

source

pub const StreamFormatChanged: Self = _

source

pub const SourceRateChanged: Self = _

source

pub const EndOfPresentationSegment: Self = _

source

pub const SourceCharacteristicsChanged: Self = _

source

pub const SourceRateChangeRequested: Self = _

source

pub const SourceMetadataChanged: Self = _

source

pub const SequencerSourceTopologyUpdated: Self = _

source

pub const SourceV1Anchor: Self = _

source

pub const SinkUnknown: Self = _

source

pub const StreamSinkStarted: Self = _

source

pub const StreamSinkStopped: Self = _

source

pub const StreamSinkPaused: Self = _

source

pub const StreamSinkRateChanged: Self = _

source

pub const StreamSinkRequestSample: Self = _

source

pub const StreamSinkMarker: Self = _

source

pub const StreamSinkPrerolled: Self = _

source

pub const StreamSinkScrubSampleComplete: Self = _

source

pub const StreamSinkFormatChanged: Self = _

source

pub const StreamSinkDeviceChanged: Self = _

source

pub const QualityNotify: Self = _

source

pub const SinkInvalidated: Self = _

source

pub const AudioSessionNameChanged: Self = _

source

pub const AudioSessionVolumeChanged: Self = _

source

pub const AudioSessionDeviceRemoved: Self = _

source

pub const AudioSessionServerShutdown: Self = _

source

pub const AudioSessionGroupingParamChanged: Self = _

source

pub const AudioSessionIconChanged: Self = _

source

pub const AudioSessionFormatChanged: Self = _

source

pub const AudioSessionDisconnected: Self = _

source

pub const AudioSessionExclusiveModeOverride: Self = _

source

pub const SinkV1Anchor: Self = _

source

pub const CaptureAudioSessionVolumeChanged: Self = _

source

pub const CaptureAudioSessionDeviceRemoved: Self = _

source

pub const CaptureAudioSessionFormatChanged: Self = _

source

pub const CaptureAudioSessionDisconnected: Self = _

source

pub const CaptureAudioSessionExclusiveModeOverride: Self = _

source

pub const CaptureAudioSessionServerShutdown: Self = _

source

pub const SinkV2Anchor: Self = _

source

pub const TrustUnknown: Self = _

source

pub const PolicyChanged: Self = _

source

pub const ContentProtectionMessage: Self = _

source

pub const PolicySet: Self = _

source

pub const TrustV1Anchor: Self = _

source

pub const WMDRMLicenseBackupCompleted: Self = _

source

pub const WMDRMLicenseBackupProgress: Self = _

source

pub const WMDRMLicenseRestoreCompleted: Self = _

source

pub const WMDRMLicenseRestoreProgress: Self = _

source

pub const WMDRMLicenseAcquisitionCompleted: Self = _

source

pub const WMDRMIndividualizationCompleted: Self = _

source

pub const WMDRMIndividualizationProgress: Self = _

source

pub const WMDRMProximityCompleted: Self = _

source

pub const WMDRMLicenseStoreCleaned: Self = _

source

pub const WMDRMRevocationDownloadCompleted: Self = _

source

pub const WMDRMV1Anchor: Self = _

source

pub const TransformUnknown: Self = _

source

pub const TransformNeedInput: Self = _

source

pub const TransformHaveOutput: Self = _

source

pub const TransformDrainComplete: Self = _

source

pub const TransformMarker: Self = _

source

pub const TransformInputStreamStateChanged: Self = _

source

pub const ByteStreamCharacteristicsChanged: Self = _

source

pub const VideoCaptureDeviceRemoved: Self = _

source

pub const VideoCaptureDevicePreempted: Self = _

source

pub const StreamSinkFormatInvalidated: Self = _

source

pub const EncodingParameters: Self = _

source

pub const ContentProtectionMetadata: Self = _

source

pub const DeviceThermalStateChanged: Self = _

Trait Implementations§

source§

impl AsRef<u32> for ME

source§

fn as_ref(&self) -> &u32

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Binary for ME

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Clone for ME

source§

fn clone(&self) -> ME

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ME

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ME

source§

fn default() -> ME

Returns the “default value” for a type. Read more
source§

impl Display for ME

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<ME> for u32

source§

fn from(v: ME) -> Self

Converts to this type from the input type.
source§

impl Hash for ME

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntUnderlying for ME

§

type Raw = u32

Available on crate feature kernel only.
The underlying raw integer type.
source§

unsafe fn as_mut(&mut self) -> &mut Self::Raw

Available on crate feature kernel only.
Returns a mutable reference to the underlying raw value. Read more
source§

impl LowerHex for ME

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Octal for ME

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Ord for ME

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for ME

source§

fn eq(&self, other: &ME) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for ME

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl UpperHex for ME

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for ME

source§

impl Eq for ME

source§

impl NativeConst for ME

source§

impl Send for ME

source§

impl StructuralPartialEq for ME

Auto Trait Implementations§

§

impl Freeze for ME

§

impl RefUnwindSafe for ME

§

impl Sync for ME

§

impl Unpin for ME

§

impl UnwindSafe for ME

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.