Struct usiem::components::dataset::calendar::CalendarSynDataset
source · pub struct CalendarSynDataset { /* private fields */ }
Implementations
sourceimpl CalendarSynDataset
impl CalendarSynDataset
pub fn new(
dataset: Arc<CalendarDataset>,
comm: Sender<UpdateCalendar>
) -> CalendarSynDataset
sourcepub fn insert(&mut self, start: i64, end: i64, data: Cow<'static, str>)
pub fn insert(&mut self, start: i64, end: i64, data: Cow<'static, str>)
Used to add IP with custom information like tags.
pub fn remove(&mut self, start: i64, end: i64)
pub fn update(&mut self, data: CalendarDataset)
pub fn get(&self, time: i64) -> Option<Vec<&Cow<'static, str>>>
Trait Implementations
sourceimpl Clone for CalendarSynDataset
impl Clone for CalendarSynDataset
sourcefn clone(&self) -> CalendarSynDataset
fn clone(&self) -> CalendarSynDataset
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for CalendarSynDataset
impl Send for CalendarSynDataset
impl Sync for CalendarSynDataset
impl Unpin for CalendarSynDataset
impl UnwindSafe for CalendarSynDataset
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more