PdCapability

Enum PdCapability 

Source
pub enum PdCapability {
Show 16 variants ContactStatusMonitoring(PdCapEntity), OutputControl(PdCapEntity), CardDataFormat(PdCapEntity), LedControl(PdCapEntity), AudibleOutput(PdCapEntity), TextOutput(PdCapEntity), TimeKeeping(PdCapEntity), CheckCharacterSupport(PdCapEntity), CommunicationSecurity(PdCapEntity), ReceiveBufferSize(PdCapEntity), LargestCombinedMessage(PdCapEntity), SmartCardSupport(PdCapEntity), Readers(PdCapEntity), Biometrics(PdCapEntity), SecurePinEntry(PdCapEntity), OsdpVersion(PdCapEntity),
}
Expand description

OSDP defined PD capabilities. PDs expose/advertise features they support to the CP by means of “capabilities”.

Variants§

§

ContactStatusMonitoring(PdCapEntity)

This function indicates the ability to monitor the status of a switch using a two-wire electrical connection between the PD and the switch. The on/off position of the switch indicates the state of an external device.

The PD may simply resolve all circuit states to an open/closed status, or it may implement supervision of the monitoring circuit. A supervised circuit is able to indicate circuit fault status in addition to open/closed status.

§

OutputControl(PdCapEntity)

This function provides a switched output, typically in the form of a relay. The Output has two states: active or inactive. The Control Panel (CP) can directly set the Output’s state, or, if the PD supports timed operations, the CP can specify a time period for the activation of the Output.

§

CardDataFormat(PdCapEntity)

This capability indicates the form of the card data is presented to the Control Panel.

§

LedControl(PdCapEntity)

This capability indicates the presence of and type of LEDs.

§

AudibleOutput(PdCapEntity)

This capability indicates the presence of and type of an audible annunciator (buzzer or similar tone generator).

§

TextOutput(PdCapEntity)

This capability indicates that the PD supports a text display emulating character-based display terminals.

§

TimeKeeping(PdCapEntity)

This capability indicates that the type of date and time awareness or time keeping ability of the PD.

§

CheckCharacterSupport(PdCapEntity)

All PDs must be able to support the checksum mode. This capability indicates if the PD is capable of supporting CRC mode.

§

CommunicationSecurity(PdCapEntity)

This capability indicates the extent to which the PD supports communication security (Secure Channel Communication)

§

ReceiveBufferSize(PdCapEntity)

This capability indicates the maximum size single message the PD can receive.

§

LargestCombinedMessage(PdCapEntity)

This capability indicates the maximum size multi-part message which the PD can handle.

§

SmartCardSupport(PdCapEntity)

This capability indicates whether the PD supports the transparent mode used for communicating directly with a smart card.

§

Readers(PdCapEntity)

This capability indicates the number of credential reader devices present. Compliance levels are bit fields to be assigned as needed.

§

Biometrics(PdCapEntity)

This capability indicates the ability of the reader to handle biometric input.

§

SecurePinEntry(PdCapEntity)

This capability indicates if the reader is capable of supporting Secure Pin Entry (SPE) for smart cards

§

OsdpVersion(PdCapEntity)

This capability indicates the version of OSDP the PD supports Compliance Levels: 0 - Unspecified 1 - IEC 60839-11-5 2 - SIA OSDP 2.2

Trait Implementations§

Source§

impl Clone for PdCapability

Source§

fn clone(&self) -> PdCapability

Returns a duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PdCapability

Source§

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

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

impl From<PdCapability> for osdp_pd_cap

Source§

fn from(value: PdCapability) -> Self

Converts to this type from the input type.
Source§

impl From<PdCapability> for u8

Source§

fn from(val: PdCapability) -> Self

Converts to this type from the input type.
Source§

impl From<osdp_pd_cap> for PdCapability

Source§

fn from(value: osdp_pd_cap) -> Self

Converts to this type from the input type.
Source§

impl FromStr for PdCapability

Source§

type Err = OsdpError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for PdCapability

Source§

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

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

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 PartialEq for PdCapability

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for PdCapability

Source§

impl StructuralPartialEq for PdCapability

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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.
§

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

Performs the conversion.