pub struct SecuredIPdu(/* private fields */);
Expand description
Wraps an IPdu
to protect it from unauthorized manipulation
Implementations§
Source§impl SecuredIPdu
impl SecuredIPdu
Sourcepub fn set_secure_communication_props(
&self,
props: &SecureCommunicationProps,
) -> Result<(), AutosarAbstractionError>
pub fn set_secure_communication_props( &self, props: &SecureCommunicationProps, ) -> Result<(), AutosarAbstractionError>
set the properties of the secured communication
Sourcepub fn secure_communication_props(&self) -> Option<SecureCommunicationProps>
pub fn secure_communication_props(&self) -> Option<SecureCommunicationProps>
get the properties of the secured communication
Sourcepub fn set_use_as_cryptographic_ipdu(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
pub fn set_use_as_cryptographic_ipdu( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set or remove the useAsCryptographicIPdu
flag
Sourcepub fn use_as_cryptographic_ipdu(&self) -> Option<bool>
pub fn use_as_cryptographic_ipdu(&self) -> Option<bool>
get the useAsCryptographicIPdu
flag
Sourcepub fn set_payload_ipdu<T: AbstractIpdu + AbstractPdu, U: AbstractPhysicalChannel>(
&self,
ipdu: &T,
physical_channel: &U,
) -> Result<PduTriggering, AutosarAbstractionError>
pub fn set_payload_ipdu<T: AbstractIpdu + AbstractPdu, U: AbstractPhysicalChannel>( &self, ipdu: &T, physical_channel: &U, ) -> Result<PduTriggering, AutosarAbstractionError>
set the payload PduTriggering
based on an IPdu
This function should be used when useAsCryptographicIPdu
is false or not set.
A PduTriggering
is created for the Pdu
Sourcepub fn set_payload_pdu_triggering(
&self,
pdu_triggering: &PduTriggering,
) -> Result<(), AutosarAbstractionError>
pub fn set_payload_pdu_triggering( &self, pdu_triggering: &PduTriggering, ) -> Result<(), AutosarAbstractionError>
set the payload PduTriggering
with an existing PduTriggering
This function should be used when useAsCryptographicIPdu is true.
In this case the payload is transmitted separately from the
cryptographic data, so the PduTriggering
already exists.
Sourcepub fn payload_pdu_triggering(&self) -> Option<PduTriggering>
pub fn payload_pdu_triggering(&self) -> Option<PduTriggering>
get the payload PduTriggering
Trait Implementations§
Source§impl AbstractIpdu for SecuredIPdu
impl AbstractIpdu for SecuredIPdu
Source§fn set_contained_ipdu_props(
&self,
props: Option<&ContainedIPduProps>,
) -> Result<(), AutosarAbstractionError>
fn set_contained_ipdu_props( &self, props: Option<&ContainedIPduProps>, ) -> Result<(), AutosarAbstractionError>
Source§fn contained_ipdu_props(&self) -> Option<ContainedIPduProps>
fn contained_ipdu_props(&self) -> Option<ContainedIPduProps>
get the
ContainedIPduProps
for this IPdu
Source§impl AbstractPdu for SecuredIPdu
impl AbstractPdu for SecuredIPdu
Source§fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
set the length of the PDU
Source§fn pdu_triggerings(&self) -> Vec<PduTriggering>
fn pdu_triggerings(&self) -> Vec<PduTriggering>
list all
PduTriggerings
that trigger this PDUSource§impl AbstractionElement for SecuredIPdu
impl AbstractionElement for SecuredIPdu
Source§impl Clone for SecuredIPdu
impl Clone for SecuredIPdu
Source§fn clone(&self) -> SecuredIPdu
fn clone(&self) -> SecuredIPdu
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SecuredIPdu
impl Debug for SecuredIPdu
Source§impl From<SecuredIPdu> for Element
impl From<SecuredIPdu> for Element
Source§fn from(val: SecuredIPdu) -> Self
fn from(val: SecuredIPdu) -> Self
Converts to this type from the input type.
Source§impl From<SecuredIPdu> for IPdu
impl From<SecuredIPdu> for IPdu
Source§fn from(value: SecuredIPdu) -> Self
fn from(value: SecuredIPdu) -> Self
Converts to this type from the input type.
Source§impl From<SecuredIPdu> for Pdu
impl From<SecuredIPdu> for Pdu
Source§fn from(value: SecuredIPdu) -> Self
fn from(value: SecuredIPdu) -> Self
Converts to this type from the input type.
Source§impl Hash for SecuredIPdu
impl Hash for SecuredIPdu
Source§impl PartialEq for SecuredIPdu
impl PartialEq for SecuredIPdu
Source§impl TryFrom<Element> for SecuredIPdu
impl TryFrom<Element> for SecuredIPdu
impl Eq for SecuredIPdu
impl StructuralPartialEq for SecuredIPdu
Auto Trait Implementations§
impl Freeze for SecuredIPdu
impl !RefUnwindSafe for SecuredIPdu
impl Send for SecuredIPdu
impl Sync for SecuredIPdu
impl Unpin for SecuredIPdu
impl !UnwindSafe for SecuredIPdu
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
Mutably borrows from an owned value. Read more
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
Compare self to
key
and return true
if they are equal.