pub struct JobsTable { /* private fields */ }Expand description
Job texts ($jobtexts)
Implementations§
Source§impl JobsTable
impl JobsTable
pub fn new() -> Self
pub fn add(&mut self, id: i32, state: JobState, text: String)
pub fn remove(&mut self, id: i32)
pub fn get_state(&self, id: i32) -> Option<&JobState>
pub fn get_text(&self, id: i32) -> Option<&str>
pub fn states(&self) -> HashMap<String, String>
pub fn texts(&self) -> HashMap<String, String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobsTable
impl RefUnwindSafe for JobsTable
impl Send for JobsTable
impl Sync for JobsTable
impl Unpin for JobsTable
impl UnsafeUnpin for JobsTable
impl UnwindSafe for JobsTable
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> 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