Struct nativeshell::codec::StandardMethodCodec [−][src]
pub struct StandardMethodCodec;
Trait Implementations
impl MessageCodec<Value> for StandardMethodCodec
[src]
impl MessageCodec<Value> for StandardMethodCodec
[src]impl MethodCodec<Value> for StandardMethodCodec
[src]
impl MethodCodec<Value> for StandardMethodCodec
[src]fn encode_method_call(&self, v: &MethodCall<Value>) -> Vec<u8>
[src]
fn encode_method_call(&self, v: &MethodCall<Value>) -> Vec<u8>
[src]Methods for calling into dart
fn decode_method_call(&self, buf: &[u8]) -> Option<MethodCall<Value>>
[src]
fn encode_success_envelope(&self, result: &Value) -> Vec<u8>
[src]
fn encode_error_envelope(
&self,
code: &str,
message: Option<&str>,
v: &Value
) -> Vec<u8>
[src]
&self,
code: &str,
message: Option<&str>,
v: &Value
) -> Vec<u8>
fn decode_envelope(
&self,
buf: &[u8]
) -> Option<Result<Value, MethodCallError<Value>>>
[src]
&self,
buf: &[u8]
) -> Option<Result<Value, MethodCallError<Value>>>
fn encode_method_call_result(
&self,
response: &Result<V, MethodCallError<V>>
) -> Vec<u8>
[src]
&self,
response: &Result<V, MethodCallError<V>>
) -> Vec<u8>