pub enum TimeZonesRequest {
AbsoluteToCivilTime {
time_zone_id: TimeZoneId,
absolute_time: i64,
responder: TimeZonesAbsoluteToCivilTimeResponder,
},
CivilToAbsoluteTime {
civil_time: CivilTime,
options: CivilToAbsoluteTimeOptions,
responder: TimeZonesCivilToAbsoluteTimeResponder,
},
GetTimeZoneInfo {
time_zone_id: TimeZoneId,
at_time: i64,
responder: TimeZonesGetTimeZoneInfoResponder,
},
}
Expand description
Provides information about time zones and offers date-time conversion methods.
TODO(https://fxbug.dev/42162409): Add time zone info methods, including offsets from UTC.
Variants§
AbsoluteToCivilTime
Converts the given absolute time to a civil date and time in the given time zone, using the Gregorian calendar.
CivilToAbsoluteTime
Converts the given civil date and time in the given time zone to nanoseconds since the Unix epoch.
GetTimeZoneInfo
Retrieves details about a time zone at a specified one.
Implementations§
Source§impl TimeZonesRequest
impl TimeZonesRequest
pub fn into_absolute_to_civil_time( self, ) -> Option<(TimeZoneId, i64, TimeZonesAbsoluteToCivilTimeResponder)>
pub fn into_civil_to_absolute_time( self, ) -> Option<(CivilTime, CivilToAbsoluteTimeOptions, TimeZonesCivilToAbsoluteTimeResponder)>
pub fn into_get_time_zone_info( self, ) -> Option<(TimeZoneId, i64, TimeZonesGetTimeZoneInfoResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimeZonesRequest
impl !RefUnwindSafe for TimeZonesRequest
impl Send for TimeZonesRequest
impl Sync for TimeZonesRequest
impl Unpin for TimeZonesRequest
impl !UnwindSafe for TimeZonesRequest
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