pub enum EntryPointKind {
Main,
Command,
Handler,
Job,
Policy,
}Expand description
Entry point kind, drawn from a fixed set.
Variants§
Implementations§
Source§impl EntryPointKind
impl EntryPointKind
Sourcepub const ALL: &'static [EntryPointKind]
pub const ALL: &'static [EntryPointKind]
The kinds an entry point may name, in the order the specification lists them.
Sourcepub fn parse(text: &str) -> Option<EntryPointKind>
pub fn parse(text: &str) -> Option<EntryPointKind>
The kind text names, if it names one.
Trait Implementations§
Source§impl Clone for EntryPointKind
impl Clone for EntryPointKind
impl Copy for EntryPointKind
Source§impl Debug for EntryPointKind
impl Debug for EntryPointKind
Source§impl<'de> Deserialize<'de> for EntryPointKind
impl<'de> Deserialize<'de> for EntryPointKind
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
impl Eq for EntryPointKind
Source§impl PartialEq for EntryPointKind
impl PartialEq for EntryPointKind
Source§impl Serialize for EntryPointKind
impl Serialize for EntryPointKind
impl StructuralPartialEq for EntryPointKind
Auto Trait Implementations§
impl Freeze for EntryPointKind
impl RefUnwindSafe for EntryPointKind
impl Send for EntryPointKind
impl Sync for EntryPointKind
impl Unpin for EntryPointKind
impl UnsafeUnpin for EntryPointKind
impl UnwindSafe for EntryPointKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.