[][src]Struct no_proto::rpc::NP_RPC_Request

pub struct NP_RPC_Request<'request> {
    pub data: NP_Buffer<'request>,
    // some fields omitted
}

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.