pub struct Link {
pub from: String,
pub to: String,
pub from_uid: String,
pub to_uid: String,
pub kind: Option<String>,
pub interface: Option<String>,
pub state: Option<String>,
pub rate_rx: Option<u64>,
pub rate_tx: Option<u64>,
pub max_rx: Option<u64>,
pub max_tx: Option<u64>,
}Expand description
A connection between two nodes.
Fields§
§from: StringThe name of a node, or its id if it has no name.
to: String§from_uid: StringThe ids of the nodes from and to.
to_uid: String§kind: Option<String>Like LAN or WLAN.
interface: Option<String>The interface of from, like AP:5G:0.
state: Option<String>Like CONNECTED.
rate_rx: Option<u64>The current rates, in kbit/s.
rate_tx: Option<u64>§max_rx: Option<u64>The highest rates, in kbit/s.
max_tx: Option<u64>Trait Implementations§
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Forget for Link
impl Freeze for Link
impl Move for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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