pub fn backend<T>(self, backend: T) -> Self
        where T: 'static + Backend {
        Self {
            backend: Arc::new(Mutex::new(backend)),
            ..self
        }
    }
/// Set the agent backend. Default is pprof.
/// # Example
/// ```ignore
/// let builder = PyroscopeAgentBuilder::new("http://localhost:8080", "my-app")
/// .backend(Pprof::default())
/// .build()
/// ?;
/// ```
Set the agent backend. Default is pprof.
Set the agent backend . Default is pprof .
pub fn backend<T>(self, backend: T) -> Self
        where T: 'static + Backend {
        Self {
            backend: Arc::new(Mutex::new(backend)),
            ..self
        }
    }
pub fn backend < T > ( self , backend : T ) -> Self where T : ' static + Backend { Self { backend : Arc :: new ( Mutex :: new ( backend ) ) , .. self } }
Set the agent backend.
Set the agent backend .
self
backend
T
self
backend
T
example
None