pub struct Configuration { /* private fields */ }
Implementations§
Source§impl Configuration
impl Configuration
pub fn new( client_id: String, region_of_responsibility: bool, custom_settings: HashMap<String, String>, ) -> Self
pub fn gateway_component_name(&self) -> String
pub fn component_name(&self, added_number: Option<u32>) -> String
pub fn station_id(&self, added_number: Option<u32>) -> u32
pub fn is_in_region_of_responsibility( &self, geo_extension: GeoExtension, ) -> bool
pub fn update(&self, new_information: Information)
pub fn get(&self, key: &str) -> Option<&String>
pub fn set(&mut self, key: &str, value: String)
Auto Trait Implementations§
impl !Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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