pub struct AnchoredRuntime { /* private fields */ }Expand description
Rezultat działania funkcji init
Implementations§
Source§impl AnchoredRuntime
impl AnchoredRuntime
Sourcepub fn count_jobs(&self) -> usize
pub fn count_jobs(&self) -> usize
Zwraca ilość wczytanych zadań
Sourcepub fn get_jobs_index(&self) -> HashMap<String, String>
pub fn get_jobs_index(&self) -> HashMap<String, String>
Zwraca indeks w formie HashMapy (ID -> Description) do szybkiego wyszukiwania
Sourcepub fn get_jobs<F>(&self, f: F)where
F: FnMut(&RawTomlJob),
pub fn get_jobs<F>(&self, f: F)where
F: FnMut(&RawTomlJob),
Wykonuje podany callback dla każdego zadania w strukturze.
Pętla for jest całkowicie ukryta przed użytkownikiem (Inwersja Sterowania).
pub fn get_jobs_some<F>(&self, ids: &BTreeSet<String>, f: F)where
F: FnMut(&RawTomlJob),
Sourcepub fn get_job(&self, id: &str) -> Option<&RawTomlJob>
pub fn get_job(&self, id: &str) -> Option<&RawTomlJob>
Pobiera konkretne zadanie na podstawie ID. Zwraca Option<&RawTomlJob>, co pozwala obsłużyć przypadek braku zadania.
Trait Implementations§
Source§impl Clone for AnchoredRuntime
impl Clone for AnchoredRuntime
Source§fn clone(&self) -> AnchoredRuntime
fn clone(&self) -> AnchoredRuntime
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 moreAuto Trait Implementations§
impl Freeze for AnchoredRuntime
impl RefUnwindSafe for AnchoredRuntime
impl Send for AnchoredRuntime
impl Sync for AnchoredRuntime
impl Unpin for AnchoredRuntime
impl UnsafeUnpin for AnchoredRuntime
impl UnwindSafe for AnchoredRuntime
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