Struct ckb_types::core::service::Request[][src]

pub struct Request<A, R> {
    pub responder: Sender<R>,
    pub arguments: A,
}

Synchronous request sent to the service.

Fields

responder: Sender<R>

One shot channel for the service to send back the response.

arguments: A

Request arguments.

Implementations

impl<A, R> Request<A, R>[src]

pub fn call(sender: &Sender<Request<A, R>>, arguments: A) -> Option<R>[src]

Call the service with the arguments and wait for the response.

Auto Trait Implementations

impl<A, R> !RefUnwindSafe for Request<A, R>

impl<A, R> Send for Request<A, R> where
    A: Send,
    R: Send

impl<A, R> !Sync for Request<A, R>

impl<A, R> Unpin for Request<A, R> where
    A: Unpin

impl<A, R> !UnwindSafe for Request<A, R>

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,