pub enum InvokeResponseBody {
Json(String),
Raw(Vec<u8>),
}
Expand description
Possible values of an IPC response.
Variants§
Implementations§
Source§impl InvokeResponseBody
impl InvokeResponseBody
Sourcepub fn deserialize<T: DeserializeOwned>(self) -> Result<T>
pub fn deserialize<T: DeserializeOwned>(self) -> Result<T>
Attempts to deserialize the response.
Trait Implementations§
Source§impl Clone for InvokeResponseBody
impl Clone for InvokeResponseBody
Source§fn clone(&self) -> InvokeResponseBody
fn clone(&self) -> InvokeResponseBody
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InvokeResponseBody
impl Debug for InvokeResponseBody
Source§impl From<InvokeBody> for InvokeResponseBody
impl From<InvokeBody> for InvokeResponseBody
Source§fn from(value: InvokeBody) -> Self
fn from(value: InvokeBody) -> Self
Converts to this type from the input type.
Source§impl From<String> for InvokeResponseBody
impl From<String> for InvokeResponseBody
Source§impl IpcResponse for InvokeResponseBody
impl IpcResponse for InvokeResponseBody
Source§fn body(self) -> Result<InvokeResponseBody>
fn body(self) -> Result<InvokeResponseBody>
Resolve the IPC response body.
Auto Trait Implementations§
impl Freeze for InvokeResponseBody
impl RefUnwindSafe for InvokeResponseBody
impl Send for InvokeResponseBody
impl Sync for InvokeResponseBody
impl Unpin for InvokeResponseBody
impl UnwindSafe for InvokeResponseBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)