pub struct DaemonTable { /* private fields */ }Expand description
The daemons Isoloom knows the foreground form of.
Implementations§
Source§impl DaemonTable
impl DaemonTable
Sourcepub fn new(entries: Vec<DaemonEntry>) -> DaemonTable
pub fn new(entries: Vec<DaemonEntry>) -> DaemonTable
A table of entries.
Sourcepub fn common() -> DaemonTable
pub fn common() -> DaemonTable
The daemons of the catalogue built into Isoloom (empty only if it doesn’t load, which its own tests rule out).
Sourcepub fn entries(&self) -> &[DaemonEntry]
pub fn entries(&self) -> &[DaemonEntry]
The entries.
Sourcepub fn find(
&self,
name: &UnitName,
family: Family,
) -> Option<(&DaemonEntry, &FamilyDaemon)>
pub fn find( &self, name: &UnitName, family: Family, ) -> Option<(&DaemonEntry, &FamilyDaemon)>
The daemon a step names name on family: by the table’s key, else by the family’s unit.
Sourcepub fn shipped_by(
&self,
package: &PackageName,
family: Family,
) -> Option<(&DaemonEntry, &FamilyDaemon)>
pub fn shipped_by( &self, package: &PackageName, family: Family, ) -> Option<(&DaemonEntry, &FamilyDaemon)>
The daemon package package ships on family, when it ships one.
Trait Implementations§
Source§impl Clone for DaemonTable
impl Clone for DaemonTable
Source§impl Debug for DaemonTable
impl Debug for DaemonTable
Source§impl Default for DaemonTable
impl Default for DaemonTable
impl Eq for DaemonTable
Source§impl From<&Catalogue> for DaemonTable
impl From<&Catalogue> for DaemonTable
Source§fn from(catalogue: &Catalogue) -> DaemonTable
fn from(catalogue: &Catalogue) -> DaemonTable
The catalogue’s daemon table: each daemon on each family its unit exists on.
Source§impl PartialEq for DaemonTable
impl PartialEq for DaemonTable
impl StructuralPartialEq for DaemonTable
Auto Trait Implementations§
impl Freeze for DaemonTable
impl RefUnwindSafe for DaemonTable
impl Send for DaemonTable
impl Sync for DaemonTable
impl Unpin for DaemonTable
impl UnsafeUnpin for DaemonTable
impl UnwindSafe for DaemonTable
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.