pub struct LanBearerConfig {
pub enabled: bool,
/* private fields */
}Expand description
The bearer’s settings. The group and the ingress limit are held as what an operator chose, if anything: an unchosen one follows this firmware’s default, and is saved as unchosen so that a later firmware with a different default brings it along.
Fields§
§enabled: boolImplementations§
Source§impl LanBearerConfig
impl LanBearerConfig
Sourcepub fn ingress_limit(&self) -> u16
pub fn ingress_limit(&self) -> u16
Datagrams per minute carried from the LAN onto the radio.
Sourcepub const fn is_config_prop(key: u32) -> bool
pub const fn is_config_prop(key: u32) -> bool
Whether key is one of the saved configuration properties.
Sourcepub fn is_default(&self, key: u32) -> bool
pub fn is_default(&self, key: u32) -> bool
Whether key holds no choice of its own and follows the default.
Sourcepub fn restore(&mut self, key: u32, saved: &Self)
pub fn restore(&mut self, key: u32, saved: &Self)
Take one property from saved, choice and all.
Trait Implementations§
Source§impl Clone for LanBearerConfig
impl Clone for LanBearerConfig
Source§fn clone(&self) -> LanBearerConfig
fn clone(&self) -> LanBearerConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LanBearerConfig
impl Debug for LanBearerConfig
Source§impl Default for LanBearerConfig
impl Default for LanBearerConfig
Source§fn default() -> LanBearerConfig
fn default() -> LanBearerConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for LanBearerConfig
impl PartialEq for LanBearerConfig
impl Copy for LanBearerConfig
impl Eq for LanBearerConfig
impl StructuralPartialEq for LanBearerConfig
Auto Trait Implementations§
impl Freeze for LanBearerConfig
impl RefUnwindSafe for LanBearerConfig
impl Send for LanBearerConfig
impl Sync for LanBearerConfig
impl Unpin for LanBearerConfig
impl UnwindSafe for LanBearerConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)