Skip to content

Commit

Permalink
doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Dilly committed Nov 22, 2021
1 parent fd53249 commit e770d52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tracing.rs
Expand Up @@ -57,6 +57,12 @@ impl Binding for TraceLevel {
}
}

/// Callback type used to pass tracing events to the subscriber.
/// see `trace_set` to register a scubscriber.
///
/// Note:
/// libgit2 might pass non-utf8 strings therefore we
/// pass the message as a byte slice
pub type TracingCb = fn(TraceLevel, &[u8]);

static CALLBACK: AtomicUsize = AtomicUsize::new(0);
Expand Down

0 comments on commit e770d52

Please sign in to comment.