Struct wactor::Bridge [−][src]
Bridge to an actor. Can be cloned for multiple owners. Actor is dropped when all bridges have been dropped.
Implementations
impl<A: Actor> Bridge<A>
[src]
pub fn send(&self, msg: A::Input) -> Result<(), ()>
[src]
Send input message. This fails if the actor has panicked.
pub fn receive(&self) -> Result<A::Output, ()>
[src]
Block until a response is received. This fails if the actor has panicked.
Trait Implementations
impl<A: Actor> Clone for Bridge<A>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de, A: Actor> Deserialize<'de> for Bridge<A>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<A: Actor> Serialize for Bridge<A>
[src]
Auto Trait Implementations
impl<A> !RefUnwindSafe for Bridge<A>
impl<A> !Send for Bridge<A>
impl<A> !Sync for Bridge<A>
impl<A> Unpin for Bridge<A> where
<A as Actor>::Input: Unpin,
<A as Actor>::Output: Unpin,
<A as Actor>::Input: Unpin,
<A as Actor>::Output: Unpin,
impl<A> UnwindSafe for Bridge<A> where
<A as Actor>::Input: UnwindSafe,
<A as Actor>::Output: UnwindSafe,
<A as Actor>::Input: UnwindSafe,
<A as Actor>::Output: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,