pub struct SigningConfig { /* private fields */ }Available on crate feature
signing only.Expand description
Configuration used for MAVLink 2 messages signing as defined in https://mavlink.io/en/guide/message_signing.html.
To use a SigningConfig for sending and reciving messages create a SigningData object using SigningData::from_config.
§Examples
Creating SigningData:
let config = SigningConfig::new([0u8; 32], 0, true, false);
let sign_data = SigningData::from_config(config);Implementations§
Source§impl SigningConfig
impl SigningConfig
Sourcepub fn new(
secret_key: [u8; 32],
link_id: u8,
sign_outgoing: bool,
allow_unsigned: bool,
) -> Self
pub fn new( secret_key: [u8; 32], link_id: u8, sign_outgoing: bool, allow_unsigned: bool, ) -> Self
Creates a new signing configuration.
If sign_outgoing is set messages send using this configuration will be signed.
If allow_unsigned is set, when receiving messages, all unsigned messages are accepted, this may also includes MAVLink 1 messages.
Trait Implementations§
Source§impl Clone for SigningConfig
impl Clone for SigningConfig
Source§fn clone(&self) -> SigningConfig
fn clone(&self) -> SigningConfig
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 moreAuto Trait Implementations§
impl Freeze for SigningConfig
impl RefUnwindSafe for SigningConfig
impl Send for SigningConfig
impl Sync for SigningConfig
impl Unpin for SigningConfig
impl UnwindSafe for SigningConfig
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