[][src]Enum swipc_parser::Decorator

pub enum Decorator {
    Undocumented,
    Version(StringOption<String>),
    ManagedPort,
    Unknown(StringString),
}

Represents a decorator.

Variants

Undocumented

Can be attached to a function to specify that its types are unknown.

Version(StringOption<String>)

Can be attached to a function to specify that the function was added or removed in a specific version.

First argument specifies which version the function was added in - it defaults to 1.0.0. The second argument specifies when the function was removed, or None if it's still around.

ManagedPort

Can be attached to a service to tag it as a kernel-managed port.

Unknown(StringString)

A decorator not known by this parser.

Trait Implementations

impl Debug for Decorator[src]

Auto Trait Implementations

impl RefUnwindSafe for Decorator

impl Send for Decorator

impl Sync for Decorator

impl Unpin for Decorator

impl UnwindSafe for Decorator

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.