maviola 0.3.0

High-level MAVLink communication library with support for essential micro-services.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fmt::Debug;

use crate::core::io::{ConnectionId, ConnectionInfo};

/// Connection configuration for a [`Node`](crate::core::node::Node).
pub trait ConnectionConf: Debug + Send {
    /// Provides information about connection.
    fn info(&self) -> &ConnectionInfo;

    /// Returns connection identifier.
    ///
    /// We suggest not to reimplement this method unless you are really know what you are doing.
    fn id(&self) -> ConnectionId {
        self.info().id()
    }
}