[−][src]Struct no_proto::rpc::NP_RPC_Request
RPC Request object
Fields
data: NP_Buffer<'request>
the request data
Implementations
impl<'request> NP_RPC_Request<'request>
[src]
pub fn rpc_name(&self) -> &str
[src]
Get the name of this RPC method
pub fn new_response(&self) -> Result<NP_RPC_Response<'_>, NP_Error>
[src]
Get empty response for this request
pub fn rpc_close(self) -> Vec<u8>
[src]
Close this request and get bytes
Auto Trait Implementations
impl<'request> Send for NP_RPC_Request<'request>
[src]
impl<'request> !Sync for NP_RPC_Request<'request>
[src]
impl<'request> Unpin for NP_RPC_Request<'request>
[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>,