Struct json_rpc2::Broker[][src]

pub struct Broker;

Broker calls multiple services and always yields a response.

Implementations

impl Broker[src]

pub fn handle<'a>(
    services: &'a Vec<&'a Box<dyn Service>>,
    req: &mut Request
) -> Result<Response>
[src]

Call each of the services in order and return the first response message.

If no services match the incoming request this will return a method not found response.

Auto Trait Implementations

impl RefUnwindSafe for Broker

impl Send for Broker

impl Sync for Broker

impl Unpin for Broker

impl UnwindSafe for Broker

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