Struct sep2_common::packages::types::DstRuleType
source · 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 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 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
source§impl FromStr for DstRuleType
impl FromStr for DstRuleType
source§impl PartialEq<DstRuleType> for DstRuleType
impl PartialEq<DstRuleType> for DstRuleType
source§fn eq(&self, other: &DstRuleType) -> bool
fn eq(&self, other: &DstRuleType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl YaDeserialize for DstRuleType
impl YaDeserialize for DstRuleType
source§impl YaSerialize for DstRuleType
impl YaSerialize for DstRuleType
impl Copy for DstRuleType
impl Eq for DstRuleType
impl StructuralEq for DstRuleType
impl StructuralPartialEq for DstRuleType
Auto Trait Implementations§
impl RefUnwindSafe for DstRuleType
impl Send for DstRuleType
impl Sync for DstRuleType
impl Unpin 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