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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl ComposeSchema for SecurityAccessRequest
impl ComposeSchema for SecurityAccessRequest
Source§impl Debug for SecurityAccessRequest
impl Debug for SecurityAccessRequest
Source§impl<'de> Deserialize<'de> for SecurityAccessRequest
impl<'de> Deserialize<'de> for SecurityAccessRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SecurityAccessRequest
impl PartialEq for SecurityAccessRequest
Source§impl Serialize for SecurityAccessRequest
impl Serialize for SecurityAccessRequest
Source§impl ToSchema for SecurityAccessRequest
impl ToSchema for SecurityAccessRequest
Source§impl WireFormat for SecurityAccessRequest
impl WireFormat for SecurityAccessRequest
Source§fn option_from_reader<T: Read>(reader: &mut T) -> Result<Option<Self>, Error>
fn option_from_reader<T: Read>(reader: &mut T) -> Result<Option<Self>, Error>
Deserialization function to read a SecurityAccessRequest
from a Reader
Source§fn to_writer<T: Write>(&self, writer: &mut T) -> Result<usize, Error>
fn to_writer<T: Write>(&self, writer: &mut T) -> Result<usize, Error>
Serialization function to write a SecurityAccessRequest
to a Writer
Source§fn required_size(&self) -> usize
fn required_size(&self) -> usize
Source§fn is_positive_response_suppressed(&self) -> bool
fn is_positive_response_suppressed(&self) -> bool
impl Eq for SecurityAccessRequest
impl StructuralPartialEq for SecurityAccessRequest
Auto Trait Implementations§
impl Freeze for SecurityAccessRequest
impl RefUnwindSafe for SecurityAccessRequest
impl Send for SecurityAccessRequest
impl Sync for SecurityAccessRequest
impl Unpin for SecurityAccessRequest
impl UnwindSafe for SecurityAccessRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.