pub struct ServiceBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ServiceBuilder<S>
impl<S: State> ServiceBuilder<S>
Sourcepub fn build(self) -> Servicewhere
S: IsComplete,
pub fn build(self) -> Servicewhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn name(self, value: impl Into<String>) -> ServiceBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(self, value: impl Into<String>) -> ServiceBuilder<SetName<S>>where
S::Name: IsUnset,
Required.
Name of the service typically (com.
Sourcepub fn uid(self, value: impl Into<String>) -> ServiceBuilder<SetUid<S>>where
S::Uid: IsUnset,
pub fn uid(self, value: impl Into<String>) -> ServiceBuilder<SetUid<S>>where
S::Uid: IsUnset,
Sourcepub fn maybe_uid(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetUid<S>>where
S::Uid: IsUnset,
pub fn maybe_uid(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetUid<S>>where
S::Uid: IsUnset,
Sourcepub fn domain_target(
self,
value: impl Into<String>,
) -> ServiceBuilder<SetDomainTarget<S>>where
S::DomainTarget: IsUnset,
pub fn domain_target(
self,
value: impl Into<String>,
) -> ServiceBuilder<SetDomainTarget<S>>where
S::DomainTarget: IsUnset,
Sourcepub fn maybe_domain_target(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetDomainTarget<S>>where
S::DomainTarget: IsUnset,
pub fn maybe_domain_target(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetDomainTarget<S>>where
S::DomainTarget: IsUnset,
Sourcepub fn service_target(
self,
value: impl Into<String>,
) -> ServiceBuilder<SetServiceTarget<S>>where
S::ServiceTarget: IsUnset,
pub fn service_target(
self,
value: impl Into<String>,
) -> ServiceBuilder<SetServiceTarget<S>>where
S::ServiceTarget: IsUnset,
Sourcepub fn maybe_service_target(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetServiceTarget<S>>where
S::ServiceTarget: IsUnset,
pub fn maybe_service_target(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetServiceTarget<S>>where
S::ServiceTarget: IsUnset,
Sourcepub fn plist_path(
self,
value: impl Into<String>,
) -> ServiceBuilder<SetPlistPath<S>>where
S::PlistPath: IsUnset,
pub fn plist_path(
self,
value: impl Into<String>,
) -> ServiceBuilder<SetPlistPath<S>>where
S::PlistPath: IsUnset,
Sourcepub fn maybe_plist_path(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetPlistPath<S>>where
S::PlistPath: IsUnset,
pub fn maybe_plist_path(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetPlistPath<S>>where
S::PlistPath: IsUnset,
Sourcepub fn error_log_path(
self,
value: impl Into<String>,
) -> ServiceBuilder<SetErrorLogPath<S>>where
S::ErrorLogPath: IsUnset,
pub fn error_log_path(
self,
value: impl Into<String>,
) -> ServiceBuilder<SetErrorLogPath<S>>where
S::ErrorLogPath: IsUnset,
Sourcepub fn maybe_error_log_path(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetErrorLogPath<S>>where
S::ErrorLogPath: IsUnset,
pub fn maybe_error_log_path(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetErrorLogPath<S>>where
S::ErrorLogPath: IsUnset,
Sourcepub fn out_log_path(
self,
value: impl Into<String>,
) -> ServiceBuilder<SetOutLogPath<S>>where
S::OutLogPath: IsUnset,
pub fn out_log_path(
self,
value: impl Into<String>,
) -> ServiceBuilder<SetOutLogPath<S>>where
S::OutLogPath: IsUnset,
Sourcepub fn maybe_out_log_path(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetOutLogPath<S>>where
S::OutLogPath: IsUnset,
pub fn maybe_out_log_path(
self,
value: Option<impl Into<String>>,
) -> ServiceBuilder<SetOutLogPath<S>>where
S::OutLogPath: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ServiceBuilder<S>
impl<S> RefUnwindSafe for ServiceBuilder<S>
impl<S> Send for ServiceBuilder<S>
impl<S> Sync for ServiceBuilder<S>
impl<S> Unpin for ServiceBuilder<S>
impl<S> UnwindSafe for ServiceBuilder<S>
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