[−][src]Struct ghost_actor::BoxGhostActor
Newtype wrapping boxed trait-object version of GhostActor.
Implementations
impl BoxGhostActor
[src]
pub fn to_boxed(&self) -> BoxGhostActor
[src]
Get a type-erased BoxGhostActor version of this handle.
pub fn invoke<T, R, E, F>(&self, invoke: F) -> GhostFuture<R, E>ⓘNotable traits for GhostFuture<R, E>
impl<R, E> Future for GhostFuture<R, E> where
E: 'static + From<GhostError> + Send, type Output = Result<R, E>;
where
T: 'static + Send,
R: 'static + Send,
E: 'static + From<GhostError> + Send,
F: FnOnce(&mut T) -> Result<R, E> + 'static + Send,
[src]
Notable traits for GhostFuture<R, E>
impl<R, E> Future for GhostFuture<R, E> where
E: 'static + From<GhostError> + Send, type Output = Result<R, E>;
T: 'static + Send,
R: 'static + Send,
E: 'static + From<GhostError> + Send,
F: FnOnce(&mut T) -> Result<R, E> + 'static + Send,
Push state read/mutation logic onto actor queue for processing.
pub fn is_active(&self) -> bool
[src]
Returns true
if the channel is still connected to the actor task.
pub fn shutdown(&self)
[src]
Close the channel to the actor task. This will result in the task being dropped once all pending invocations have been processed.
Trait Implementations
impl AsGhostActor for BoxGhostActor
[src]
pub fn __invoke(
&self,
invoke: RawInvokeClosure
) -> GhostFuture<Box<dyn Any + Send + 'static>, GhostError>ⓘNotable traits for GhostFuture<R, E>
impl<R, E> Future for GhostFuture<R, E> where
E: 'static + From<GhostError> + Send, type Output = Result<R, E>;
[src]
&self,
invoke: RawInvokeClosure
) -> GhostFuture<Box<dyn Any + Send + 'static>, GhostError>ⓘ
Notable traits for GhostFuture<R, E>
impl<R, E> Future for GhostFuture<R, E> where
E: 'static + From<GhostError> + Send, type Output = Result<R, E>;
pub fn __box_clone(&self) -> BoxGhostActor
[src]
pub fn __is_same_actor(&self, o: &dyn Any) -> bool
[src]
pub fn __hash_actor(&self, hasher: &mut dyn Hasher)
[src]
pub fn __is_active(&self) -> bool
[src]
pub fn __shutdown(&self)
[src]
impl Clone for BoxGhostActor
[src]
pub fn clone(&self) -> BoxGhostActor
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for BoxGhostActor
[src]
impl Hash for BoxGhostActor
[src]
pub fn hash<Hasher: Hasher>(&self, state: &mut Hasher)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<BoxGhostActor> for BoxGhostActor
[src]
impl StructuralEq for BoxGhostActor
[src]
Auto Trait Implementations
impl !RefUnwindSafe for BoxGhostActor
[src]
impl Send for BoxGhostActor
[src]
impl Sync for BoxGhostActor
[src]
impl Unpin for BoxGhostActor
[src]
impl !UnwindSafe for BoxGhostActor
[src]
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> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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>,