pub struct InvocationHandle<E, Res> { /* private fields */ }Expand description
A typed handle to a Restate invocation.
Implementations§
Source§impl<E, Res> InvocationHandle<E, Res>where
E: RequestExecutor,
Res: Deserialize,
impl<E, Res> InvocationHandle<E, Res>where
E: RequestExecutor,
Res: Deserialize,
pub fn invocation_id(&self) -> &InvocationId
Sourcepub async fn attach(&self) -> Result<HttpResponse<Res>, ClientError>
pub async fn attach(&self) -> Result<HttpResponse<Res>, ClientError>
Waits for the invocation to finish and decodes its output.
Sourcepub async fn output(&self) -> Result<HttpResponse<Output<Res>>, ClientError>
pub async fn output(&self) -> Result<HttpResponse<Output<Res>>, ClientError>
Peeks at the invocation output without waiting for completion.
Trait Implementations§
Auto Trait Implementations§
impl<E, Res> Freeze for InvocationHandle<E, Res>
impl<E, Res> RefUnwindSafe for InvocationHandle<E, Res>
impl<E, Res> Send for InvocationHandle<E, Res>
impl<E, Res> Sync for InvocationHandle<E, Res>
impl<E, Res> Unpin for InvocationHandle<E, Res>
impl<E, Res> UnsafeUnpin for InvocationHandle<E, Res>
impl<E, Res> UnwindSafe for InvocationHandle<E, Res>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more