SecurityAccessRequest

Struct SecurityAccessRequest 

Source
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

Source

pub fn suppress_positive_response(&self) -> bool

Getter for whether a positive response should be suppressed

Source

pub fn access_type(&self) -> SecurityAccessType

Getter for the requested SecurityAccessType

Source

pub fn request_data(&self) -> &[u8]

Getter for the request data

Source

pub fn allowed_nack_codes() -> &'static [NegativeResponseCode]

Get the allowed NegativeResponseCode variants for this request

Trait Implementations§

Source§

impl Clone for SecurityAccessRequest

Source§

fn clone(&self) -> SecurityAccessRequest

Returns a duplicate 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 ComposeSchema for SecurityAccessRequest

Source§

impl Debug for SecurityAccessRequest

Source§

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

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

impl<'de> Deserialize<'de> for SecurityAccessRequest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for SecurityAccessRequest

Source§

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

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

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 Serialize for SecurityAccessRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl SingleValueWireFormat for SecurityAccessRequest

Source§

fn from_reader<T: Read>(reader: &mut T) -> Result<Self, Error>

Errors Read more
Source§

impl ToSchema for SecurityAccessRequest

Source§

fn name() -> Cow<'static, str>

Return name of the schema. Read more
Source§

fn schemas(schemas: &mut Vec<(String, RefOr<Schema>)>)

Implement reference utoipa::openapi::schema::Schemas for this type. Read more
Source§

impl WireFormat for SecurityAccessRequest

Source§

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>

Serialization function to write a SecurityAccessRequest to a Writer

Source§

fn required_size(&self) -> usize

Returns the number of bytes required to serialize this value.
Source§

fn is_positive_response_suppressed(&self) -> bool

For some UDS messages, positive replies can be suppressed via the SPRMIB (bit 7 position) of the request. Read more
Source§

impl Eq for SecurityAccessRequest

Source§

impl StructuralPartialEq for SecurityAccessRequest

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> CloneToUninit for T
where T: Clone,

Source§

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

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> PartialSchema for T
where T: ComposeSchema + ?Sized,

Source§

fn schema() -> RefOr<Schema>

Return ref or schema of implementing type that can then be used to construct combined schemas.
Source§

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

Source§

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

Source§

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

Source§

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,