[−][src]Struct no_proto::rpc::NP_RPC_Response
RPC Response object
Fields
kind: NP_ResponseKinds
what kind of response is this?
data: NP_Buffer<'response>
the data of this response
error: NP_Buffer<'response>
if this is an error, the error data
Implementations
impl<'request> NP_RPC_Response<'request>
[src]
pub fn rpc_name(&self) -> &str
[src]
Get the name of this RPC method
pub fn rpc_close(self) -> Result<Vec<u8>, NP_Error>
[src]
Close this response
The only failure condition is if you set the kind
to NP_ResponseKinds::Error
but didn't have an error type declared in the rpc method.
Auto Trait Implementations
impl<'response> Send for NP_RPC_Response<'response>
[src]
impl<'response> !Sync for NP_RPC_Response<'response>
[src]
impl<'response> Unpin for NP_RPC_Response<'response>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,