Enum spirit_daemonize::SecId [−][src]
Expand description
Configuration of either user or a group.
This is used to load the configuration into which user and group to drop privileges.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Name(String)
Look up based on the name.
Tuple Fields of Name
0: String
Id(u32)
Use the numerical value directly.
Tuple Fields of Id
0: u32
Don’t drop privileges.
This is not read from configuration, but it is the default value available if nothing is listed in configuration.
Trait Implementations
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
Returns the documentation for the type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SecId
impl UnwindSafe for SecId
Blanket Implementations
Mutably borrows from an owned value. Read more