Skip to main content

WithMsgNative

Trait WithMsgNative 

Source
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§

Source

async fn async_with_msg_native<F: AsyncFnOnce(oscore_msg_native_t) -> R, R>( self, f: F, ) -> R

Provided Methods§

Source

fn with_msg_native<F: FnOnce(oscore_msg_native_t) -> R, R>(self, f: F) -> R
where 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.

Implementations on Foreign Types§

Source§

impl<'a, 'b> WithMsgNative for &'a mut Message<'b>

Source§

async fn async_with_msg_native<F: AsyncFnOnce(oscore_msg_native_t) -> R, R>( self, f: F, ) -> R

Implementors§