pub type BeforeResult = Result<(), BoxError>;
pub enum BeforeResult { Ok(()), Err(Box<dyn Error + Send>), }
Contains the success value
Contains the error value