Struct mavio::protocol::SigningConf
source · pub struct SigningConf {
pub link_id: SignedLinkId,
pub timestamp: MavTimestamp,
pub secret: SecretKey,
}
Expand description
Message signing configuration for Frame
.
⚠ Secret key is excluded from Serde serialization.
§Links
Sign
trait defines signing algorithm protocol.- Signature specification in MAVLink docs.
Fields§
§link_id: SignedLinkId
Defines Signature::link_id
that will be appended to MAVLink packet upon signing.
timestamp: MavTimestamp
Defines Signature::timestamp
that will be appended to MAVLink packet upon signing.
secret: SecretKey
Secret key is used to calculate Signature::value
.
⚠ Since secret
contains sensitive value, it will be excluded from
Serde serialization.
Implementations§
source§impl SigningConf
impl SigningConf
Trait Implementations§
source§impl Clone for SigningConf
impl Clone for SigningConf
source§fn clone(&self) -> SigningConf
fn clone(&self) -> SigningConf
Returns a copy 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 SigningConf
impl Debug for SigningConf
source§impl Default for SigningConf
impl Default for SigningConf
source§fn default() -> Self
fn default() -> Self
Instantiates SigningConf
with default values.
Sets secret
bytes to 0xff
which is recommended as a masked value by
MAVLink documentation.
source§impl<'de> Deserialize<'de> for SigningConf
impl<'de> Deserialize<'de> for SigningConf
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SigningConf
impl RefUnwindSafe for SigningConf
impl Send for SigningConf
impl Sync for SigningConf
impl Unpin for SigningConf
impl UnwindSafe for SigningConf
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