Struct dioxus_mobile::wry::webview::RpcResponse [−]
pub struct RpcResponse { /* fields omitted */ }
Expand description
RPC response message which being sent back to the Javascript side.
Implementations
impl RpcResponse
impl RpcResponse
pub fn new_result(id: Option<Value>, result: Option<Value>) -> RpcResponse
pub fn new_result(id: Option<Value>, result: Option<Value>) -> RpcResponse
Create a new result response.
Create a new error response.
Get a script that resolves the promise with a result.
Trait Implementations
impl Debug for RpcResponse
impl Debug for RpcResponse
impl<'de> Deserialize<'de> for RpcResponse
impl<'de> Deserialize<'de> for RpcResponse
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<RpcResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<RpcResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for RpcResponse
impl Serialize for RpcResponse
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more