Skip to main content

FnNew

Type Alias FnNew 

Source
pub type FnNew = Either<fn(&NodeData) -> FnNewResult, fn(&NodeData) -> LocalBoxFuture<'static, FnNewResult>>;

Aliased Type§

pub enum FnNew {
    Left(fn(&NodeData) -> Result<Box<dyn CommandTrait>, Error>),
    Right(fn(&NodeData) -> Pin<Box<dyn Future<Output = Result<Box<dyn CommandTrait>, Error>>>>),
}

Variants§

§

Left(fn(&NodeData) -> Result<Box<dyn CommandTrait>, Error>)

First branch of the type

§

Right(fn(&NodeData) -> Pin<Box<dyn Future<Output = Result<Box<dyn CommandTrait>, Error>>>>)

Second branch of the type