pub struct DstRuleType(/* private fields */);Implementations§
Source§impl DstRuleType
impl DstRuleType
Sourcepub fn new(
seconds: u32,
hours: u32,
day_of_week: u32,
day_of_month: u32,
operator: u32,
month: u32,
) -> Self
pub fn new( seconds: u32, hours: u32, day_of_week: u32, day_of_month: u32, operator: u32, month: u32, ) -> Self
Create a complete DST Rule
Sourcepub fn set_seconds(&mut self, seconds: u32)
pub fn set_seconds(&mut self, seconds: u32)
Set the seconds (bits 0 - 11)
Sourcepub fn day_of_week(&self) -> u32
pub fn day_of_week(&self) -> u32
Get the day of the week (bits 17 - 19)
Sourcepub fn set_day_of_week(&mut self, day_of_week: u32)
pub fn set_day_of_week(&mut self, day_of_week: u32)
Set the day of the week (bits 17 - 19)
Sourcepub fn day_of_month(&self) -> u32
pub fn day_of_month(&self) -> u32
Get the day of the month (bits 20 - 24)
Sourcepub fn set_day_of_month(&mut self, day_of_month: u32)
pub fn set_day_of_month(&mut self, day_of_month: u32)
Set the day of the month (bits 20 - 24)
Sourcepub fn set_operator(&mut self, operator: u32)
pub fn set_operator(&mut self, operator: u32)
Set the operator (bits 25 - 27)
Trait Implementations§
Source§impl Clone for DstRuleType
impl Clone for DstRuleType
Source§fn clone(&self) -> DstRuleType
fn clone(&self) -> DstRuleType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DstRuleType
Source§impl Debug for DstRuleType
impl Debug for DstRuleType
Source§impl Default for DstRuleType
impl Default for DstRuleType
Source§fn default() -> DstRuleType
fn default() -> DstRuleType
Returns the “default value” for a type. Read more
Source§impl Display for DstRuleType
impl Display for DstRuleType
impl Eq for DstRuleType
Source§impl FromStr for DstRuleType
impl FromStr for DstRuleType
Source§impl PartialEq for DstRuleType
impl PartialEq for DstRuleType
impl StructuralPartialEq for DstRuleType
Source§impl YaDeserialize for DstRuleType
impl YaDeserialize for DstRuleType
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for DstRuleType
impl YaSerialize for DstRuleType
Auto Trait Implementations§
impl Freeze for DstRuleType
impl RefUnwindSafe for DstRuleType
impl Send for DstRuleType
impl Sync for DstRuleType
impl Unpin for DstRuleType
impl UnsafeUnpin for DstRuleType
impl UnwindSafe for DstRuleType
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