Struct nativeshell::codec::EngineMethodChannel [−][src]
pub struct EngineMethodChannel<V> where
V: 'static, { /* fields omitted */ }
Implementations
pub fn new<F>(
context: ContextRef,
engine_handle: EngineHandle,
channel_name: &str,
codec: &'static dyn MethodCodec<V>,
callback: F
) -> Self where
F: Fn(MethodCall<V>, MethodCallReply<V>) + 'static,
pub fn new_with_engine_manager<F>(
context: Context,
engine_handle: EngineHandle,
channel_name: &str,
codec: &'static dyn MethodCodec<V>,
callback: F,
engine_manager: &EngineManager
) -> Self where
F: Fn(MethodCall<V>, MethodCallReply<V>) + 'static,
Trait Implementations
Auto Trait Implementations
impl<V> !RefUnwindSafe for EngineMethodChannel<V>
impl<V> !Send for EngineMethodChannel<V>
impl<V> !Sync for EngineMethodChannel<V>
impl<V> Unpin for EngineMethodChannel<V>
impl<V> !UnwindSafe for EngineMethodChannel<V>