Skip to main content

NetResult

Type Alias NetResult 

Source
pub type NetResult<T = ()> = Result<T, NetError>;
Expand description

A result returned by the network and socket domain.

Aliased Type§

pub enum NetResult<T = ()> {
    Ok(T),
    Err(NetError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(NetError)

Contains the error value