[][src]Struct lib3h_zombie_actor::GhostTracker

pub struct GhostTracker<UserData, CbData: 'static, E: 'static> { /* fields omitted */ }

GhostTracker registers callbacks associated with request_ids that can be triggered later when a response comes back indicating that id

Methods

impl<UserData, CbData: 'static, E: 'static> GhostTracker<UserData, CbData, E>[src]

pub fn process(&mut self, ga: &mut UserData) -> GhostResult<WorkWasDone>[src]

trigger any periodic or delayed callbacks also check / cleanup any timeouts

pub fn bookmark(
    &mut self,
    span: Span,
    cb: GhostCallback<UserData, CbData, E>
) -> RequestId
[src]

register a callback

pub fn bookmark_options(
    &mut self,
    _span: Span,
    cb: GhostCallback<UserData, CbData, E>,
    options: GhostTrackerBookmarkOptions
) -> RequestId
[src]

register a callback, using a specific timeout instead of the default

pub fn handle(
    &mut self,
    request_id: RequestId,
    owner: &mut UserData,
    data: Result<CbData, E>
) -> GhostResult<()>
[src]

handle a response "owner" is meant to be the GhostActor (or other dynamic trait object) that is tracking for the call back, to get itself back in the callback and to an upcast

Auto Trait Implementations

impl<UserData, CbData, E> !RefUnwindSafe for GhostTracker<UserData, CbData, E>

impl<UserData, CbData, E> !Send for GhostTracker<UserData, CbData, E>

impl<UserData, CbData, E> !Sync for GhostTracker<UserData, CbData, E>

impl<UserData, CbData, E> Unpin for GhostTracker<UserData, CbData, E>

impl<UserData, CbData, E> !UnwindSafe for GhostTracker<UserData, CbData, E>

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> Erased for T

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