[][src]Struct sunrise_libuser::time::TimeZoneServiceProxy

pub struct TimeZoneServiceProxy(ClientSession);

TimeZone service object

Implementations

impl TimeZoneServiceProxy[src]

pub fn clone_current_object(&self) -> Result<Self, Error>[src]

Clones the current object, returning a new handle. The returned handle has its own IPC buffer - it may be used concurrently with the original.

pub fn get_device_location_name(&self) -> Result<LocationName, Error>[src]

Get the time zone name used on this devie

pub fn set_device_location_name(
    &self,
    unknown_0: LocationName
) -> Result<(), Error>
[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_location_name_list(
    &self,
    unknown_0: u32,
    unknown_1: &mut [LocationName]
) -> Result<u32, Error>
[src]

Load the list of location name available

pub fn load_timezone_rule(
    &self,
    unknown_0: LocationName,
    unknown_1: &mut TimeZoneRule
) -> Result<(), Error>
[src]

Load a time zone rule

pub fn to_calendar_time(
    &self,
    unknown_0: PosixTime,
    unknown_1: &TimeZoneRule
) -> Result<(CalendarTime, CalendarAdditionalInfo), Error>
[src]

Convert a PosixTime to a local time using a TimeZoneRule

pub fn to_calendar_time_with_my_rule(
    &self,
    unknown_0: PosixTime
) -> Result<(CalendarTime, CalendarAdditionalInfo), Error>
[src]

Convert a PosixTime to a local time using the device TimeZoneRule

pub fn to_posix_time(
    &self,
    unknown_0: CalendarTime,
    unknown_1: &TimeZoneRule
) -> Result<PosixTime, Error>
[src]

Convert a local time to a PosixTime using a TimeZoneRule.

pub fn to_posix_time_with_my_rule(
    &self,
    unknown_0: CalendarTime
) -> Result<PosixTime, Error>
[src]

Convert a local time to a PosixTime using the device TimeZoneRule

Trait Implementations

impl Debug for TimeZoneServiceProxy[src]

impl From<ClientSession> for TimeZoneServiceProxy[src]

impl From<TimeZoneServiceProxy> for ClientSession[src]

Auto Trait Implementations

impl RefUnwindSafe for TimeZoneServiceProxy

impl Send for TimeZoneServiceProxy

impl Sync for TimeZoneServiceProxy

impl Unpin for TimeZoneServiceProxy

impl UnwindSafe for TimeZoneServiceProxy

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.