pub fn add_breadcrumb<B: IntoBreadcrumbs>(&self, breadcrumb: B) {
        with_client_impl! {{
            self.inner.with_mut(|stack| {
                let top = stack.top_mut();
                if let Some(ref client) = top.client {
                    let scope = Arc::make_mut(&mut top.scope);
                    let options = client.options();
                    for breadcrumb in breadcrumb.into_breadcrumbs() {
                        let breadcrumb_opt = match options.before_breadcrumb {
                            Some(ref callback) => callback(breadcrumb),
                            None => Some(breadcrumb)
                        };
                        if let Some(breadcrumb) = breadcrumb_opt {
                            scope.breadcrumbs.push_back(breadcrumb);
                        }
                        while scope.breadcrumbs.len() > options.max_breadcrumbs {
                            scope.breadcrumbs.pop_front();
                        }
                    }
                }
            })
        }}
    }
/// Adds a new breadcrumb to the current scope.
///
/// See the global [`add_breadcrumb`](fn.add_breadcrumb.html)
/// for more documentation.
Adds a new breadcrumb to the current scope.
Adds a new breadcrumb to the current scope .
pub fn add_breadcrumb<B: IntoBreadcrumbs>(&self, breadcrumb: B) {
        with_client_impl! {{
            self.inner.with_mut(|stack| {
                let top = stack.top_mut();
                if let Some(ref client) = top.client {
                    let scope = Arc::make_mut(&mut top.scope);
                    let options = client.options();
                    for breadcrumb in breadcrumb.into_breadcrumbs() {
                        let breadcrumb_opt = match options.before_breadcrumb {
                            Some(ref callback) => callback(breadcrumb),
                            None => Some(breadcrumb)
                        };
                        if let Some(breadcrumb) = breadcrumb_opt {
                            scope.breadcrumbs.push_back(breadcrumb);
                        }
                        while scope.breadcrumbs.len() > options.max_breadcrumbs {
                            scope.breadcrumbs.pop_front();
                        }
                    }
                }
            })
        }}
    }
pub fn add_breadcrumb < B : IntoBreadcrumbs > ( & self , breadcrumb : B ) { with_client_impl ! { { self inner with_mut ( stack { let top stack top_mut ( ) if let Some ( ref client ) top client { let scope Arc make_mut ( mut top scope ) let options client options ( ) for breadcrumb in breadcrumb into_breadcrumbs ( ) { let breadcrumb_opt match options before_breadcrumb { Some ( ref callback ) callback ( breadcrumb ) None Some ( breadcrumb ) } if let Some ( breadcrumb ) breadcrumb_opt { scope breadcrumbs push_back ( breadcrumb ) } while scope breadcrumbs len ( ) options max_breadcrumbs { scope breadcrumbs pop_front ( ) } } } } ) } } }
Adds a new breadcrumb to the current scope.
Adds a new breadcrumb to the current scope .
&self
breadcrumb
B