iroh_blobs::get

Type Alias GetResult

Source
pub type GetResult<T> = Result<T, GetError>;

Aliased Type§

enum GetResult<T> {
    Ok(T),
    Err(GetError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(GetError)

Contains the error value

Trait Implementations§

Source§

impl TryFrom<GetProgressItem> for GetResult<Stats>

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(item: GetProgressItem) -> Result<Self, Self::Error>

Performs the conversion.