Enum nativeshell::codec::value::Value [−][src]
pub enum Value { Null, Bool(bool), I64(i64), F64(f64), String(String), U8List(Vec<u8>), I32List(Vec<i32>), I64List(Vec<i64>), F64List(Vec<f64>), List(Vec<Value>), Map(HashMap<Value, Value>), }
Variants
Bool(bool)
I64(i64)
F64(f64)
String(String)
Trait Implementations
impl<'de> Deserialize<'de> for Value
[src]
impl<'de> Deserialize<'de> for Value
[src]fn deserialize<D>(deserializer: D) -> Result<Value, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Value, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
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>
impl Eq for Value
[src]
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,