pub struct ObjectImpl { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for ObjectImpl
impl Default for ObjectImpl
Source§impl Object for ObjectImpl
impl Object for ObjectImpl
Source§async fn create(
&self,
ctx: ObjectContext<'_>,
job: Json<JobSpec>,
) -> HandlerResult<()>
async fn create( &self, ctx: ObjectContext<'_>, job: Json<JobSpec>, ) -> HandlerResult<()>
Create a new cron job.
Source§async fn replace(
&self,
ctx: ObjectContext<'_>,
job: Json<JobSpec>,
) -> HandlerResult<()>
async fn replace( &self, ctx: ObjectContext<'_>, job: Json<JobSpec>, ) -> HandlerResult<()>
Create a new or replace an existing cron job.
Source§async fn cancel(&self, ctx: ObjectContext<'_>) -> HandlerResult<()>
async fn cancel(&self, ctx: ObjectContext<'_>) -> HandlerResult<()>
Cancel an existing cron job.
Source§async fn run(&self, ctx: ObjectContext<'_>) -> HandlerResult<()>
async fn run(&self, ctx: ObjectContext<'_>) -> HandlerResult<()>
Internal handler for running the cron job.
Source§async fn get(
&self,
ctx: SharedObjectContext<'_>,
) -> HandlerResult<Json<JobSpec>>
async fn get( &self, ctx: SharedObjectContext<'_>, ) -> HandlerResult<Json<JobSpec>>
Get the details of an existing cron job.
Source§async fn get_next_run(
&self,
ctx: SharedObjectContext<'_>,
) -> HandlerResult<Json<NextRun>>
async fn get_next_run( &self, ctx: SharedObjectContext<'_>, ) -> HandlerResult<Json<NextRun>>
Get the next run time of an existing cron job.
Source§fn serve(self) -> ServeObject<Self>
fn serve(self) -> ServeObject<Self>
Returns a serving function to use with [::restate_sdk::endpoint::Builder::with_service].
Auto Trait Implementations§
impl !Freeze for ObjectImpl
impl !RefUnwindSafe for ObjectImpl
impl Send for ObjectImpl
impl Sync for ObjectImpl
impl Unpin for ObjectImpl
impl !UnwindSafe for ObjectImpl
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