[−][src]Struct sunrise_time::timezone::TimeZoneManager
Global instance handling I/O and storage of the device rules.
Fields
location: LocationName
The location name of this device.
my_rules: TimeZoneRule
Rules of this device.
temp_rules: TimeZoneRule
Temporary rules storage used during timezone conversion.
Implementations
impl TimeZoneManager
[src]
pub fn get_device_location_name(&self) -> LocationName
[src]
Get the time zone name used on this devie.
pub fn set_device_location_name(
&mut self,
location: LocationName
) -> Result<(), Error>
[src]
&mut self,
location: LocationName
) -> Result<(), Error>
Set the time zone name used on this devie.
Note:
This also load the new timezone rule.
pub fn set_device_location_name_unchecked(&mut self, location: LocationName)
[src]
Set the time zone name used on this devie.
pub fn get_total_location_name_count(&self) -> Result<u32, Error>
[src]
Get the total count of location name available
pub fn load_timezone_rule(
&mut self,
location: LocationName,
timezone_rule: Option<&mut TimeZoneRule>
) -> Result<(), Error>
[src]
&mut self,
location: LocationName,
timezone_rule: Option<&mut TimeZoneRule>
) -> Result<(), Error>
Load a time zone rule.
pub fn get_my_rules(&self) -> &TimeZoneRule
[src]
Get the device timezone rule.
Auto Trait Implementations
impl RefUnwindSafe for TimeZoneManager
impl Send for TimeZoneManager
impl Sync for TimeZoneManager
impl Unpin for TimeZoneManager
impl UnwindSafe for TimeZoneManager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SizedIPCBuffer for T
[src]
fn size(&self) -> usize
[src]
fn is_cool(addr: usize, size: usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(addr: usize, _size: usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(addr: usize, _size: usize) -> &'a mut T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,