pub struct ServiceUnit {
pub kind: &'static str,
pub path: PathBuf,
pub text: String,
pub install_command: String,
pub files: Vec<(PathBuf, String)>,
}Expand description
A rendered service unit: what setup prints and writes.
Fields§
§kind: &'static strlaunchd, systemd or schtasks.
path: PathBufWhere setup writes the rendered text under <home>/service/.
text: StringThe unit text itself.
install_command: StringThe command an operator (or ORC-10) runs to install it.
files: Vec<(PathBuf, String)>Files the unit reads, written beside it (a Windows task’s environment file).
Trait Implementations§
Source§impl Clone for ServiceUnit
impl Clone for ServiceUnit
Source§impl Debug for ServiceUnit
impl Debug for ServiceUnit
impl Eq for ServiceUnit
Source§impl PartialEq for ServiceUnit
impl PartialEq for ServiceUnit
Source§impl Serialize for ServiceUnit
impl Serialize for ServiceUnit
impl StructuralPartialEq for ServiceUnit
Auto Trait Implementations§
impl Freeze for ServiceUnit
impl RefUnwindSafe for ServiceUnit
impl Send for ServiceUnit
impl Sync for ServiceUnit
impl Unpin for ServiceUnit
impl UnsafeUnpin for ServiceUnit
impl UnwindSafe for ServiceUnit
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.