[−][src]Struct lib3h_zombie_actor::prelude::GhostTracker
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]
&mut self,
span: Span,
cb: GhostCallback<UserData, CbData, E>
) -> RequestId
register a callback
pub fn bookmark_options(
&mut self,
_span: Span,
cb: GhostCallback<UserData, CbData, E>,
options: GhostTrackerBookmarkOptions
) -> RequestId
[src]
&mut self,
_span: Span,
cb: GhostCallback<UserData, CbData, E>,
options: GhostTrackerBookmarkOptions
) -> RequestId
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]
&mut self,
request_id: RequestId,
owner: &mut UserData,
data: Result<CbData, E>
) -> GhostResult<()>
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> !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>
impl<UserData, CbData, E> !RefUnwindSafe for GhostTracker<UserData, CbData, E>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,