fidl_fuchsia_intl

Trait TimeZonesProxyInterface

Source
pub trait TimeZonesProxyInterface: Send + Sync {
    type AbsoluteToCivilTimeResponseFut: Future<Output = Result<TimeZonesAbsoluteToCivilTimeResult, Error>> + Send;
    type CivilToAbsoluteTimeResponseFut: Future<Output = Result<TimeZonesCivilToAbsoluteTimeResult, Error>> + Send;
    type GetTimeZoneInfoResponseFut: Future<Output = Result<TimeZonesGetTimeZoneInfoResult, Error>> + Send;

    // Required methods
    fn absolute_to_civil_time(
        &self,
        time_zone_id: &TimeZoneId,
        absolute_time: i64,
    ) -> Self::AbsoluteToCivilTimeResponseFut;
    fn civil_to_absolute_time(
        &self,
        civil_time: &CivilTime,
        options: &CivilToAbsoluteTimeOptions,
    ) -> Self::CivilToAbsoluteTimeResponseFut;
    fn get_time_zone_info(
        &self,
        time_zone_id: &TimeZoneId,
        at_time: i64,
    ) -> Self::GetTimeZoneInfoResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn absolute_to_civil_time( &self, time_zone_id: &TimeZoneId, absolute_time: i64, ) -> Self::AbsoluteToCivilTimeResponseFut

Source

fn civil_to_absolute_time( &self, civil_time: &CivilTime, options: &CivilToAbsoluteTimeOptions, ) -> Self::CivilToAbsoluteTimeResponseFut

Source

fn get_time_zone_info( &self, time_zone_id: &TimeZoneId, at_time: i64, ) -> Self::GetTimeZoneInfoResponseFut

Implementors§