pub fn new_with_source<E>(msg: &str, source: E) -> Self
    where
        E: std::error::Error + Send + Sync + 'static,
    {
        Error::Compat {
            msg: msg.to_string(),
            source: Box::new(source),
        }
    }
/// Create a new instance of PyroscopeError with source
Create a new instance of PyroscopeError with source
Create a new instance of PyroscopeError with source
pub fn new_with_source<E>(msg: &str, source: E) -> Self
    where
        E: std::error::Error + Send + Sync + 'static,
    {
        Error::Compat {
            msg: msg.to_string(),
            source: Box::new(source),
        }
    }
pub fn new_with_source < E > ( msg : & str , source : E ) -> Self where E : std :: error :: Error + Send + Sync + ' static , { Error :: Compat { msg : msg . to_string ( ) , source : Box :: new ( source ) , } }
Create a new instance of PyroscopeError with source
Create a new instance of PyroscopeError with source
msg
&str
source
E
msg
&str
source
E