Type Alias ServiceResult

Source
pub type ServiceResult<T> = Result<T, ServiceError>;

Aliased Type§

enum ServiceResult<T> {
    Ok(T),
    Err(ServiceError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ServiceError)

Contains the error value

Trait Implementations§

Source§

impl From<CommandResult> for ServiceResult<()>

Source§

fn from(result: CommandResult) -> Self

Converts to this type from the input type.
Source§

impl From<CommandResult> for ServiceResult<Option<ClipboardProviding>>

Source§

fn from(result: CommandResult) -> Self

Converts to this type from the input type.
Source§

impl From<CommandResult> for ServiceResult<Option<String>>

Source§

fn from(result: CommandResult) -> Self

Converts to this type from the input type.
Source§

impl From<CommandResult> for ServiceResult<String>

Source§

fn from(result: CommandResult) -> Self

Converts to this type from the input type.
Source§

impl From<CommandResult> for ServiceResult<Vec<Event>>

Source§

fn from(result: CommandResult) -> Self

Converts to this type from the input type.
Source§

impl From<CommandResult> for ServiceResult<Vec<StoreConfig>>

Source§

fn from(result: CommandResult) -> Self

Converts to this type from the input type.
Source§

impl From<CommandResult> for ServiceResult<bool>

Source§

fn from(result: CommandResult) -> Self

Converts to this type from the input type.