Struct launchd::keep_alive::KeepAliveOptions
source · pub struct KeepAliveOptions { /* private fields */ }
Implementations§
source§impl KeepAliveOptions
impl KeepAliveOptions
pub fn new() -> Self
pub fn with_successful_exit(self, value: bool) -> Self
pub fn with_network_state(self, value: bool) -> Self
pub fn with_path_state(self, value: HashMap<String, bool>) -> Self
pub fn with_other_job_enabled(self, value: HashMap<String, bool>) -> Self
Trait Implementations§
source§impl Clone for KeepAliveOptions
impl Clone for KeepAliveOptions
source§fn clone(&self) -> KeepAliveOptions
fn clone(&self) -> KeepAliveOptions
Returns a copy of the value. Read more
1.0.0 · 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 KeepAliveOptions
impl Debug for KeepAliveOptions
source§impl Default for KeepAliveOptions
impl Default for KeepAliveOptions
source§fn default() -> KeepAliveOptions
fn default() -> KeepAliveOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for KeepAliveOptions
impl<'de> Deserialize<'de> for KeepAliveOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<KeepAliveOptions> for KeepAliveType
impl From<KeepAliveOptions> for KeepAliveType
source§fn from(value: KeepAliveOptions) -> Self
fn from(value: KeepAliveOptions) -> Self
Converts to this type from the input type.
source§impl PartialEq<KeepAliveOptions> for KeepAliveOptions
impl PartialEq<KeepAliveOptions> for KeepAliveOptions
source§fn eq(&self, other: &KeepAliveOptions) -> bool
fn eq(&self, other: &KeepAliveOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for KeepAliveOptions
impl Serialize for KeepAliveOptions
impl Eq for KeepAliveOptions
impl StructuralEq for KeepAliveOptions
impl StructuralPartialEq for KeepAliveOptions
Auto Trait Implementations§
impl RefUnwindSafe for KeepAliveOptions
impl Send for KeepAliveOptions
impl Sync for KeepAliveOptions
impl Unpin for KeepAliveOptions
impl UnwindSafe for KeepAliveOptions
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.