pub struct GatewayInfo {
pub mode: GwMode,
pub sel_class: u32,
pub bandwidth_down: u32,
pub bandwidth_up: u32,
pub algo: String,
}Expand description
Contains configuration information about a mesh gateway.
This struct is used when querying or setting the gateway mode and associated parameters.
Fields§
§mode: GwModeCurrent gateway mode (BATADV_ATTR_GW_MODE).
sel_class: u32Selection class for the gateway (BATADV_ATTR_GW_SEL_CLASS).
bandwidth_down: u32Downstream bandwidth in kbps (BATADV_ATTR_GW_BANDWIDTH_DOWN).
bandwidth_up: u32Upstream bandwidth in kbps (BATADV_ATTR_GW_BANDWIDTH_UP).
algo: StringRouting algorithm in use (BATADV_ATTR_ALGO_NAME).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GatewayInfo
impl RefUnwindSafe for GatewayInfo
impl Send for GatewayInfo
impl Sync for GatewayInfo
impl Unpin for GatewayInfo
impl UnsafeUnpin for GatewayInfo
impl UnwindSafe for GatewayInfo
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