pub struct TimeZonesSynchronousProxy { /* private fields */ }
Implementations§
Source§impl TimeZonesSynchronousProxy
impl TimeZonesSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TimeZonesEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TimeZonesEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn absolute_to_civil_time(
&self,
time_zone_id: &TimeZoneId,
absolute_time: i64,
___deadline: MonotonicInstant,
) -> Result<TimeZonesAbsoluteToCivilTimeResult, Error>
pub fn absolute_to_civil_time( &self, time_zone_id: &TimeZoneId, absolute_time: i64, ___deadline: MonotonicInstant, ) -> Result<TimeZonesAbsoluteToCivilTimeResult, Error>
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,
___deadline: MonotonicInstant,
) -> Result<TimeZonesCivilToAbsoluteTimeResult, Error>
pub fn civil_to_absolute_time( &self, civil_time: &CivilTime, options: &CivilToAbsoluteTimeOptions, ___deadline: MonotonicInstant, ) -> Result<TimeZonesCivilToAbsoluteTimeResult, Error>
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,
___deadline: MonotonicInstant,
) -> Result<TimeZonesGetTimeZoneInfoResult, Error>
pub fn get_time_zone_info( &self, time_zone_id: &TimeZoneId, at_time: i64, ___deadline: MonotonicInstant, ) -> Result<TimeZonesGetTimeZoneInfoResult, Error>
Retrieves details about a time zone at a specified one.
Trait Implementations§
Source§impl Debug for TimeZonesSynchronousProxy
impl Debug for TimeZonesSynchronousProxy
Source§impl SynchronousProxy for TimeZonesSynchronousProxy
impl SynchronousProxy for TimeZonesSynchronousProxy
Source§type Proxy = TimeZonesProxy
type Proxy = TimeZonesProxy
The async proxy for the same protocol.
Source§type Protocol = TimeZonesMarker
type Protocol = TimeZonesMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for TimeZonesSynchronousProxy
impl RefUnwindSafe for TimeZonesSynchronousProxy
impl Send for TimeZonesSynchronousProxy
impl Sync for TimeZonesSynchronousProxy
impl Unpin for TimeZonesSynchronousProxy
impl UnwindSafe for TimeZonesSynchronousProxy
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