[][src]Struct sp_yew::hub::Worker

pub struct Worker { /* fields omitted */ }

Implementations

impl Worker[src]

pub fn get_cb(
    &self,
    correlation_id: Uuid,
    client_addr: String
) -> Callback<Response<Result<Vec<u8>, Error>>>
[src]

pub fn get_string_cb(
    &self,
    correlation_id: Uuid,
    client_addr: String
) -> Callback<Response<Result<String, Error>>>
[src]

pub fn get_binary_cb(
    &self,
    correlation_id: Uuid,
    client_addr: String
) -> Callback<Response<Result<Vec<u8>, Error>>>
[src]

Trait Implementations

impl Agent for Worker[src]

type Reach = Context<Self>

Reach capability of the agent.

type Message = Msg

Type of an input message.

type Input = Request

Incoming message type.

type Output = Response

Outgoing message type.

Auto Trait Implementations

impl !RefUnwindSafe for Worker

impl !Send for Worker

impl !Sync for Worker

impl Unpin for Worker

impl !UnwindSafe for Worker

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

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

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

impl<T> Bridged for T where
    T: Agent,
    <T as Agent>::Reach: Discoverer,
    <<T as Agent>::Reach as Discoverer>::Agent == T, 
[src]

impl<T> Dispatched for T where
    T: Agent,
    <T as Agent>::Reach: Discoverer,
    <T as Agent>::Reach: Dispatchable,
    <<T as Agent>::Reach as Discoverer>::Agent == T, 
[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>,