Skip to main content

SourceResult

Type Alias SourceResult 

Source
pub type SourceResult<T> = Result<T, String>;
Expand description

Source-side fallible result. Errors are user-facing strings the host echoes verbatim. Wrapping in Result<...,String> rather than a typed error keeps the WIT mirror (Phase 7) trivial – plugin-emitted errors cross the boundary as strings.

Aliased Type§

pub enum SourceResult<T> {
    Ok(T),
    Err(String),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(String)

Contains the error value