pub struct ServiceUnit {
pub kind: &'static str,
pub path: PathBuf,
pub text: String,
pub install_command: String,
}Expand description
A rendered service unit: what setup prints and writes.
Fields§
§kind: &'static strlaunchd or systemd.
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.
Trait Implementations§
Source§impl Clone for ServiceUnit
impl Clone for ServiceUnit
Source§fn clone(&self) -> ServiceUnit
fn clone(&self) -> ServiceUnit
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 moreSource§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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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.