pub trait WithMsgNative: Sealed {
// Required method
async fn async_with_msg_native<F: AsyncFnOnce(oscore_msg_native_t) -> R, R>(
self,
f: F,
) -> R;
// Provided method
fn with_msg_native<F: FnOnce(oscore_msg_native_t) -> R, R>(self, f: F) -> R
where Self: Sized { ... }
}Expand description
Sealed helper trait to implement with_msg_native
Required Methods§
async fn async_with_msg_native<F: AsyncFnOnce(oscore_msg_native_t) -> R, R>( self, f: F, ) -> R
Provided Methods§
fn with_msg_native<F: FnOnce(oscore_msg_native_t) -> R, R>(self, f: F) -> Rwhere
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.