Skip to content

Commit 3ddfd37

Browse files
author
Stephan Dilly
committed
doc comment
1 parent fd53249 commit 3ddfd37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tracing.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ impl Binding for TraceLevel {
5757
}
5858
}
5959

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

6269
static CALLBACK: AtomicUsize = AtomicUsize::new(0);

0 commit comments

Comments
 (0)