Type Alias SyncSpawnResult

Source
pub type SyncSpawnResult = Result<(), Box<dyn Any + Send>>;
Expand description

Type alias for the result type returned by spawnable functions.

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

Aliased Type§

enum SyncSpawnResult {
    Ok(()),
    Err(Box<dyn Any + Send>),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(Box<dyn Any + Send>)

Contains the error value