Skip to content

Commit 9cdc7af

Browse files
author
Stephan Dilly
committed
doc comment
1 parent 50a990f commit 9cdc7af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tracing.rs

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

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

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

0 commit comments

Comments
 (0)