Type Alias PhpResult

Source
pub type PhpResult<T = ()> = Result<T, PhpException>;
Expand description

Result type with the error variant as a PhpException.

Aliased Type§

pub enum PhpResult<T = ()> {
    Ok(T),
    Err(PhpException),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(PhpException)

Contains the error value