#[repr(C)]
pub struct osdp_pd_info_t { pub name: *const c_char, pub baud_rate: c_int, pub address: c_int, pub flags: c_int, pub id: osdp_pd_id, pub cap: *const osdp_pd_cap, pub channel: osdp_channel, pub scbk: *const u8, }
Expand description

@brief OSDP PD Information. This struct is used to describe a PD to LibOSDP.

@param name User provided name for this PD (log messages include this name) @param baud_rate Can be one of 9600/19200/38400/57600/115200/230400 @param address 7 bit PD address. the rest of the bits are ignored. The special address 0x7F is used for broadcast. So there can be 2^7-1 devices on a multi-drop channel @param flags Used to modify the way the context is setup. See OSDP_FLAG_XXX @param id Static information that the PD reports to the CP when it received a CMD_ID. These information must be populated by a PD application. @param cap This is a pointer to an array of structures containing the PD’ capabilities. Use { -1, 0, 0 } to terminate the array. This is used only PD mode of operation @param channel Communication channel ops structure, containing send/recv function pointers. @param scbk Pointer to 16 bytes of Secure Channel Base Key for the PD. If non-null, this is used to set-up the secure channel.

Fields§

§name: *const c_char§baud_rate: c_int§address: c_int§flags: c_int§id: osdp_pd_id§cap: *const osdp_pd_cap§channel: osdp_channel§scbk: *const u8

Trait Implementations§

source§

impl Clone for osdp_pd_info_t

source§

fn clone(&self) -> osdp_pd_info_t

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 osdp_pd_info_t

source§

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

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

impl Copy for osdp_pd_info_t

Auto Trait Implementations§

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