File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,8 @@ where
329
329
}
330
330
331
331
// An implementation of BoxCastPtr means that when we give C code a pointer to the relevant type,
332
- // it is actually a Box.
332
+ // it is actually a Box. At most one of BoxCastPtr or ArcCastPtr should be implemented for a given
333
+ // type.
333
334
pub ( crate ) trait BoxCastPtr : CastPtr + Sized {
334
335
fn to_box ( ptr : * mut Self ) -> Option < Box < Self :: RustType > > {
335
336
if ptr. is_null ( ) {
@@ -351,7 +352,8 @@ pub(crate) trait BoxCastPtr: CastPtr + Sized {
351
352
}
352
353
353
354
// An implementation of ArcCastPtr means that when we give C code a pointer to the relevant type,
354
- // it is actually a Arc.
355
+ // it is actually a Arc. At most one of BoxCastPtr or ArcCastPtr should be implemented for a given
356
+ // // type.
355
357
pub ( crate ) trait ArcCastPtr : CastConstPtr + Sized {
356
358
/// Sometimes we create an Arc, then call `into_raw` and return the resulting raw pointer
357
359
/// to C. C can then call rustls_server_session_new multiple times using that
You can’t perform that action at this time.
0 commit comments