[][src]Struct ipc_communication::Processor

pub struct Processor<Request, Response> { /* fields omitted */ }

Requests processor.

Methods

impl<Request, Response> Processor<Request, Response> where
    Request: Serialize,
    Request: Deserialize<'de>,
    Response: Serialize,
    Response: Deserialize<'de>, 
[src]

pub fn run_loop<F>(&self, f: F) -> Result<(), Error> where
    F: FnMut(Request) -> Response, 
[src]

Runs infinitely, processing incoming request using a given closure and sending generated responses back to the clients.

Auto Trait Implementations

impl<Request, Response> !RefUnwindSafe for Processor<Request, Response>

impl<Request, Response> Send for Processor<Request, Response> where
    Request: Send,
    Response: Send

impl<Request, Response> !Sync for Processor<Request, Response>

impl<Request, Response> Unpin for Processor<Request, Response> where
    Request: Unpin,
    Response: Unpin

impl<Request, Response> UnwindSafe for Processor<Request, Response> where
    Request: UnwindSafe,
    Response: UnwindSafe

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>,