pub struct SecurityAccessRequest { /* private fields */ }Expand description
Client request to access a security level
This service supports two primary types of request:
§Request Seed
When requesting a seed, the request data represents implementation defined
SecurityAccessDataRecord values.
This data is optional, and its use is implementation defined.
Suppressing a positive response to this request is not supported.
§Send Key
When sending a key, the request data represents the key to be sent. After receiving a seed, the client must calculate the corresponding key and send it to the server. The server will then validate the key and respond with a positive or negative response. Successful verification of the key will result in the server unlocking the requested security level. Suppressing a positive response to this request is allowed.
Implementations§
Source§impl SecurityAccessRequest
impl SecurityAccessRequest
Sourcepub fn suppress_positive_response(&self) -> bool
pub fn suppress_positive_response(&self) -> bool
Getter for whether a positive response should be suppressed
Sourcepub fn access_type(&self) -> SecurityAccessType
pub fn access_type(&self) -> SecurityAccessType
Getter for the requested SecurityAccessType
Sourcepub fn request_data(&self) -> &[u8] ⓘ
pub fn request_data(&self) -> &[u8] ⓘ
Getter for the request data
Sourcepub fn allowed_nack_codes() -> &'static [NegativeResponseCode]
pub fn allowed_nack_codes() -> &'static [NegativeResponseCode]
Get the allowed NegativeResponseCode variants for this request
Trait Implementations§
Source§impl Clone for SecurityAccessRequest
impl Clone for SecurityAccessRequest
Source§fn clone(&self) -> SecurityAccessRequest
fn clone(&self) -> SecurityAccessRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SecurityAccessRequest
impl Debug for SecurityAccessRequest
impl Eq for SecurityAccessRequest
Source§impl PartialEq for SecurityAccessRequest
impl PartialEq for SecurityAccessRequest
impl StructuralPartialEq for SecurityAccessRequest
Source§impl WireFormat for SecurityAccessRequest
impl WireFormat for SecurityAccessRequest
Source§fn decode<T: Read>(reader: &mut T) -> Result<Option<Self>, Error>
fn decode<T: Read>(reader: &mut T) -> Result<Option<Self>, Error>
Deserialization function to read a SecurityAccessRequest from a Reader
Source§fn encode<T: Write>(&self, writer: &mut T) -> Result<usize, Error>
fn encode<T: Write>(&self, writer: &mut T) -> Result<usize, Error>
Serialization function to write a SecurityAccessRequest to a Writer