pub enum ScheduleZone {
Owner,
Fixed(FixedOffset),
Named(Tz),
}Expand description
The zone a schedule’s wall-clock time is read in. Stored in
goal_schedules.tz as ScheduleZone::stored: local for the owner’s
zone, an IANA name, or a fixed offset (UTC, +05:30).
Variants§
Owner
The owner’s own clock (the system zone), with its daylight-saving rules.
Fixed(FixedOffset)
A numeric offset or UTC: no daylight saving.
Named(Tz)
A named IANA zone such as Europe/Madrid, with its daylight-saving rules.
Implementations§
Source§impl ScheduleZone
impl ScheduleZone
Sourcepub fn from_stored(tz: &str) -> Result<Self>
pub fn from_stored(tz: &str) -> Result<Self>
The zone a stored goal_schedules.tz names. local is the owner’s
zone; anything else is read as a zone token, so a value this cannot
resolve is an error, never a silent fallback to the owner’s clock.
Trait Implementations§
Source§impl Clone for ScheduleZone
impl Clone for ScheduleZone
impl Copy for ScheduleZone
Source§impl Debug for ScheduleZone
impl Debug for ScheduleZone
Source§impl PartialEq for ScheduleZone
impl PartialEq for ScheduleZone
impl StructuralPartialEq for ScheduleZone
Auto Trait Implementations§
impl Forget for ScheduleZone
impl Freeze for ScheduleZone
impl Move for ScheduleZone
impl RefUnwindSafe for ScheduleZone
impl Send for ScheduleZone
impl Sync for ScheduleZone
impl Unpin for ScheduleZone
impl UnsafeUnpin for ScheduleZone
impl UnwindSafe for ScheduleZone
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more