Enum launchd::keep_alive::KeepAliveType
source · pub enum KeepAliveType {
Enabled(bool),
Options(KeepAliveOptions),
}
Variants§
Enabled(bool)
Options(KeepAliveOptions)
Trait Implementations§
source§impl Clone for KeepAliveType
impl Clone for KeepAliveType
source§fn clone(&self) -> KeepAliveType
fn clone(&self) -> KeepAliveType
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 KeepAliveType
impl Debug for KeepAliveType
source§impl<'de> Deserialize<'de> for KeepAliveType
impl<'de> Deserialize<'de> for KeepAliveType
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 From<bool> for KeepAliveType
impl From<bool> for KeepAliveType
source§impl PartialEq<KeepAliveType> for KeepAliveType
impl PartialEq<KeepAliveType> for KeepAliveType
source§fn eq(&self, other: &KeepAliveType) -> bool
fn eq(&self, other: &KeepAliveType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for KeepAliveType
impl Serialize for KeepAliveType
impl Eq for KeepAliveType
impl StructuralEq for KeepAliveType
impl StructuralPartialEq for KeepAliveType
Auto Trait Implementations§
impl RefUnwindSafe for KeepAliveType
impl Send for KeepAliveType
impl Sync for KeepAliveType
impl Unpin for KeepAliveType
impl UnwindSafe for KeepAliveType
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.