Struct fidl_fuchsia_intl::TimeZonesProxy
source · pub struct TimeZonesProxy { /* private fields */ }
Implementations§
source§impl TimeZonesProxy
impl TimeZonesProxy
sourcepub fn take_event_stream(&self) -> TimeZonesEventStream
pub fn take_event_stream(&self) -> TimeZonesEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn absolute_to_civil_time(
&self,
time_zone_id: &TimeZoneId,
absolute_time: i64
) -> QueryResponseFut<TimeZonesAbsoluteToCivilTimeResult>
pub fn absolute_to_civil_time( &self, time_zone_id: &TimeZoneId, absolute_time: i64 ) -> QueryResponseFut<TimeZonesAbsoluteToCivilTimeResult>
Converts the given absolute time to a civil date and time in the given time zone, using the Gregorian calendar.
sourcepub fn civil_to_absolute_time(
&self,
civil_time: &CivilTime,
options: &CivilToAbsoluteTimeOptions
) -> QueryResponseFut<TimeZonesCivilToAbsoluteTimeResult>
pub fn civil_to_absolute_time( &self, civil_time: &CivilTime, options: &CivilToAbsoluteTimeOptions ) -> QueryResponseFut<TimeZonesCivilToAbsoluteTimeResult>
Converts the given civil date and time in the given time zone to nanoseconds since the Unix epoch.
sourcepub fn get_time_zone_info(
&self,
time_zone_id: &TimeZoneId,
at_time: i64
) -> QueryResponseFut<TimeZonesGetTimeZoneInfoResult>
pub fn get_time_zone_info( &self, time_zone_id: &TimeZoneId, at_time: i64 ) -> QueryResponseFut<TimeZonesGetTimeZoneInfoResult>
Retrieves details about a time zone at a specified one.
Trait Implementations§
source§impl Clone for TimeZonesProxy
impl Clone for TimeZonesProxy
source§fn clone(&self) -> TimeZonesProxy
fn clone(&self) -> TimeZonesProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TimeZonesProxy
impl Debug for TimeZonesProxy
source§impl Proxy for TimeZonesProxy
impl Proxy for TimeZonesProxy
§type Protocol = TimeZonesMarker
type Protocol = TimeZonesMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
source§impl TimeZonesProxyInterface for TimeZonesProxy
impl TimeZonesProxyInterface for TimeZonesProxy
type AbsoluteToCivilTimeResponseFut = QueryResponseFut<Result<CivilTime, TimeZonesError>>
fn absolute_to_civil_time( &self, time_zone_id: &TimeZoneId, absolute_time: i64 ) -> Self::AbsoluteToCivilTimeResponseFut
type CivilToAbsoluteTimeResponseFut = QueryResponseFut<Result<i64, TimeZonesError>>
fn civil_to_absolute_time( &self, civil_time: &CivilTime, options: &CivilToAbsoluteTimeOptions ) -> Self::CivilToAbsoluteTimeResponseFut
type GetTimeZoneInfoResponseFut = QueryResponseFut<Result<TimeZoneInfo, TimeZonesError>>
fn get_time_zone_info( &self, time_zone_id: &TimeZoneId, at_time: i64 ) -> Self::GetTimeZoneInfoResponseFut
Auto Trait Implementations§
impl !RefUnwindSafe for TimeZonesProxy
impl Send for TimeZonesProxy
impl Sync for TimeZonesProxy
impl Unpin for TimeZonesProxy
impl !UnwindSafe for TimeZonesProxy
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