Skip to main content

Result

Type Alias Result 

Source
pub type Result<T> = Result<T, Box<dyn Error + Send + Sync>>;
Expand description

What a fallible language-server operation returns.

The failures that reach here come from other crates already (binding a socket, reading a config), and none of them is inspected: the server logs the error and falls back. A boxed error carries that without asking every site to name a type, and ? converts into it the same way.

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(Box<dyn Error + Send + Sync>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Box<dyn Error + Send + Sync>)

Contains the error value