[−][src]Struct sp_yew::hub::Worker
Implementations
impl Worker
[src]
pub fn get_cb(
&self,
correlation_id: Uuid,
client_addr: String
) -> Callback<Response<Result<Vec<u8>, Error>>>
[src]
&self,
correlation_id: Uuid,
client_addr: String
) -> Callback<Response<Result<Vec<u8>, Error>>>
pub fn get_string_cb(
&self,
correlation_id: Uuid,
client_addr: String
) -> Callback<Response<Result<String, Error>>>
[src]
&self,
correlation_id: Uuid,
client_addr: String
) -> Callback<Response<Result<String, Error>>>
pub fn get_binary_cb(
&self,
correlation_id: Uuid,
client_addr: String
) -> Callback<Response<Result<Vec<u8>, Error>>>
[src]
&self,
correlation_id: Uuid,
client_addr: String
) -> Callback<Response<Result<Vec<u8>, Error>>>
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.
fn create(link: AgentLink<Self>) -> Self
[src]
fn update(&mut self, msg: Self::Message)
[src]
fn handle_input(&mut self, msg: Self::Input, who: HandlerId)
[src]
fn connected(&mut self, _id: HandlerId)
[src]
fn disconnected(&mut self, _id: HandlerId)
[src]
fn destroy(&mut self)
[src]
fn name_of_resource() -> &'static str
[src]
fn is_module() -> bool
[src]
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]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Bridged for T where
T: Agent,
<T as Agent>::Reach: Discoverer,
<<T as Agent>::Reach as Discoverer>::Agent == T,
[src]
T: Agent,
<T as Agent>::Reach: Discoverer,
<<T as Agent>::Reach as Discoverer>::Agent == T,
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]
T: Agent,
<T as Agent>::Reach: Discoverer,
<T as Agent>::Reach: Dispatchable,
<<T as Agent>::Reach as Discoverer>::Agent == T,
fn dispatcher() -> Dispatcher<T>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,