pub struct ObjectClient<'ctx> { /* private fields */ }Expand description
Struct exposing the client to invoke [#service_ident] from another service.
Implementations§
Source§impl<'ctx> ObjectClient<'ctx>
Struct exposing the client to invoke Object from another service.
impl<'ctx> ObjectClient<'ctx>
Struct exposing the client to invoke Object from another service.
pub fn create(&self, req: Json<JobSpec>) -> Request<'ctx, Json<JobSpec>, ()>
pub fn replace(&self, req: Json<JobSpec>) -> Request<'ctx, Json<JobSpec>, ()>
pub fn cancel(&self) -> Request<'ctx, (), ()>
pub fn run(&self) -> Request<'ctx, (), ()>
pub fn get(&self) -> Request<'ctx, (), Json<JobSpec>>
pub fn get_next_run(&self) -> Request<'ctx, (), Json<NextRun>>
Trait Implementations§
Source§impl<'ctx> IntoObjectClient<'ctx> for ObjectClient<'ctx>
impl<'ctx> IntoObjectClient<'ctx> for ObjectClient<'ctx>
fn create_client(ctx: &'ctx ContextInternal, key: String) -> Self
Auto Trait Implementations§
impl<'ctx> Freeze for ObjectClient<'ctx>
impl<'ctx> RefUnwindSafe for ObjectClient<'ctx>
impl<'ctx> Send for ObjectClient<'ctx>
impl<'ctx> Sync for ObjectClient<'ctx>
impl<'ctx> Unpin for ObjectClient<'ctx>
impl<'ctx> UnwindSafe for ObjectClient<'ctx>
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> 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