pub struct ClaimedMagneticStripeReader(/* private fields */);
Implementations§
§impl ClaimedMagneticStripeReader
impl ClaimedMagneticStripeReader
pub fn DeviceId(&self) -> Result<HSTRING>
pub fn IsEnabled(&self) -> Result<bool>
pub fn SetIsDisabledOnDataReceived(&self, value: bool) -> Result<()>
pub fn IsDisabledOnDataReceived(&self) -> Result<bool>
pub fn SetIsDecodeDataEnabled(&self, value: bool) -> Result<()>
pub fn IsDecodeDataEnabled(&self) -> Result<bool>
pub fn IsDeviceAuthenticated(&self) -> Result<bool>
pub fn SetDataEncryptionAlgorithm(&self, value: u32) -> Result<()>
pub fn DataEncryptionAlgorithm(&self) -> Result<u32>
pub fn SetTracksToRead(&self, value: MagneticStripeReaderTrackIds) -> Result<()>
pub fn TracksToRead(&self) -> Result<MagneticStripeReaderTrackIds>
pub fn SetIsTransmitSentinelsEnabled(&self, value: bool) -> Result<()>
pub fn IsTransmitSentinelsEnabled(&self) -> Result<bool>
pub fn EnableAsync(&self) -> Result<IAsyncAction>
pub fn DisableAsync(&self) -> Result<IAsyncAction>
pub fn RetainDevice(&self) -> Result<()>
pub fn SetErrorReportingType( &self, value: MagneticStripeReaderErrorReportingType, ) -> Result<()>
pub fn RetrieveDeviceAuthenticationDataAsync( &self, ) -> Result<IAsyncOperation<IBuffer>>
pub fn AuthenticateDeviceAsync( &self, responsetoken: &[u8], ) -> Result<IAsyncAction>
pub fn DeAuthenticateDeviceAsync( &self, responsetoken: &[u8], ) -> Result<IAsyncAction>
pub fn UpdateKeyAsync( &self, key: &HSTRING, keyname: &HSTRING, ) -> Result<IAsyncAction>
pub fn ResetStatisticsAsync<P0>(
&self,
statisticscategories: P0,
) -> Result<IAsyncAction>where
P0: Param<IIterable<HSTRING>>,
pub fn UpdateStatisticsAsync<P0>(&self, statistics: P0) -> Result<IAsyncAction>where
P0: Param<IIterable<IKeyValuePair<HSTRING, HSTRING>>>,
pub fn BankCardDataReceived<P0>( &self, handler: P0, ) -> Result<EventRegistrationToken>
pub fn RemoveBankCardDataReceived( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn AamvaCardDataReceived<P0>( &self, handler: P0, ) -> Result<EventRegistrationToken>
pub fn RemoveAamvaCardDataReceived( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn VendorSpecificDataReceived<P0>( &self, handler: P0, ) -> Result<EventRegistrationToken>
pub fn RemoveVendorSpecificDataReceived( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn ReleaseDeviceRequested<P0>(
&self,
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<ClaimedMagneticStripeReader>>,
pub fn RemoveReleaseDeviceRequested( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn ErrorOccurred<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderErrorOccurredEventArgs>>,
pub fn RemoveErrorOccurred(&self, token: EventRegistrationToken) -> Result<()>
pub fn Closed<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<ClaimedMagneticStripeReader, ClaimedMagneticStripeReaderClosedEventArgs>>,
pub fn RemoveClosed(&self, token: EventRegistrationToken) -> Result<()>
pub fn Close(&self) -> Result<()>
Trait Implementations§
§impl CanInto<IInspectable> for ClaimedMagneticStripeReader
impl CanInto<IInspectable> for ClaimedMagneticStripeReader
§impl CanInto<IUnknown> for ClaimedMagneticStripeReader
impl CanInto<IUnknown> for ClaimedMagneticStripeReader
§impl Clone for ClaimedMagneticStripeReader
impl Clone for ClaimedMagneticStripeReader
§fn clone(&self) -> ClaimedMagneticStripeReader
fn clone(&self) -> ClaimedMagneticStripeReader
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 ClaimedMagneticStripeReader
impl Debug for ClaimedMagneticStripeReader
§impl From<&ClaimedMagneticStripeReader> for &IInspectable
impl From<&ClaimedMagneticStripeReader> for &IInspectable
§fn from(value: &ClaimedMagneticStripeReader) -> Self
fn from(value: &ClaimedMagneticStripeReader) -> Self
Converts to this type from the input type.
§impl From<&ClaimedMagneticStripeReader> for &IUnknown
impl From<&ClaimedMagneticStripeReader> for &IUnknown
§fn from(value: &ClaimedMagneticStripeReader) -> Self
fn from(value: &ClaimedMagneticStripeReader) -> Self
Converts to this type from the input type.
§impl From<ClaimedMagneticStripeReader> for IInspectable
impl From<ClaimedMagneticStripeReader> for IInspectable
§fn from(value: ClaimedMagneticStripeReader) -> Self
fn from(value: ClaimedMagneticStripeReader) -> Self
Converts to this type from the input type.
§impl From<ClaimedMagneticStripeReader> for IUnknown
impl From<ClaimedMagneticStripeReader> for IUnknown
§fn from(value: ClaimedMagneticStripeReader) -> Self
fn from(value: ClaimedMagneticStripeReader) -> Self
Converts to this type from the input type.
§impl Interface for ClaimedMagneticStripeReader
impl Interface for ClaimedMagneticStripeReader
§const IID: GUID = <IClaimedMagneticStripeReader as windows_core::Interface>::IID
const IID: GUID = <IClaimedMagneticStripeReader 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 ClaimedMagneticStripeReader
impl PartialEq for ClaimedMagneticStripeReader
§fn eq(&self, other: &ClaimedMagneticStripeReader) -> bool
fn eq(&self, other: &ClaimedMagneticStripeReader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ClaimedMagneticStripeReader
impl Send for ClaimedMagneticStripeReader
impl StructuralPartialEq for ClaimedMagneticStripeReader
impl Sync for ClaimedMagneticStripeReader
Auto Trait Implementations§
impl Freeze for ClaimedMagneticStripeReader
impl RefUnwindSafe for ClaimedMagneticStripeReader
impl Unpin for ClaimedMagneticStripeReader
impl UnwindSafe for ClaimedMagneticStripeReader
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
)