Type Alias AsyncSpawnResult

Source
pub type AsyncSpawnResult = Result<(), JoinError>;
Expand description

Type alias for the result type returned by spawnable functions.

  • Ok(()): Indicates successful execution of the function.
  • Err(JoinError): Contains a error value in case of a panic or failure.

Aliased Type§

pub enum AsyncSpawnResult {
    Ok(()),
    Err(JoinError),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(JoinError)

Contains the error value