pub struct JobRuntimeStore {
jobs: FastMap<Uuid, JobRuntime>,
}Fields§
§jobs: FastMap<Uuid, JobRuntime>Implementations§
Source§impl JobRuntimeStore
impl JobRuntimeStore
pub fn new() -> Self
pub fn insert(&mut self, runtime: JobRuntime)
pub fn contains(&self, job_id: &Uuid) -> bool
pub fn get(&self, job_id: &Uuid) -> Option<&JobRuntime>
pub fn get_mut(&mut self, job_id: &Uuid) -> Option<&mut JobRuntime>
pub fn remove(&mut self, job_id: &Uuid) -> Option<JobRuntime>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &JobRuntime>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut JobRuntime>
Trait Implementations§
Source§impl Debug for JobRuntimeStore
impl Debug for JobRuntimeStore
Source§impl Default for JobRuntimeStore
impl Default for JobRuntimeStore
Source§fn default() -> JobRuntimeStore
fn default() -> JobRuntimeStore
Returns the “default value” for a type. Read more
Source§impl<'a> IntoIterator for &'a JobRuntimeStore
impl<'a> IntoIterator for &'a JobRuntimeStore
Source§impl<'a> IntoIterator for &'a mut JobRuntimeStore
impl<'a> IntoIterator for &'a mut JobRuntimeStore
Auto Trait Implementations§
impl Freeze for JobRuntimeStore
impl RefUnwindSafe for JobRuntimeStore
impl Send for JobRuntimeStore
impl Sync for JobRuntimeStore
impl Unpin for JobRuntimeStore
impl UnsafeUnpin for JobRuntimeStore
impl UnwindSafe for JobRuntimeStore
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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