Struct nativeshell::codec::MethodChannel [−][src]
pub struct MethodChannel<V> where
V: 'static, { /* fields omitted */ }
Implementations
impl<V> MethodChannel<V>
[src]
impl<V> MethodChannel<V>
[src]pub fn new<F>(
context: Rc<Context>,
engine_handle: EngineHandle,
channel_name: &str,
codec: &'static dyn MethodCodec<V>,
callback: F
) -> Self where
F: Fn(MethodCall<V>, MethodCallReply<V>) + 'static,
[src]
context: Rc<Context>,
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: Rc<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,
[src]
context: Rc<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,