Skip to main content

ServiceExtensionResult

Type Alias ServiceExtensionResult 

Source
pub type ServiceExtensionResult = Result<Value, ServiceExtensionError>;
Expand description

What a service extension answers: Dart’s ServiceExtensionResponse.result, the JSON a callback’s map encodes to, or the reason there is none.

Aliased Type§

pub enum ServiceExtensionResult {
    Ok(Value),
    Err(ServiceExtensionError),
}

Variants§

§1.0.0

Ok(Value)

Contains the success value

§1.0.0

Err(ServiceExtensionError)

Contains the error value