pub(crate) struct ProdCronFacade {
workspace: Weak<Workspace>,
}Expand description
Production facade over Weak<Workspace> (weak to avoid a cycle with
the MCP server the workspace owns).
Fields§
§workspace: Weak<Workspace>Implementations§
Trait Implementations§
Source§impl CronFacade for ProdCronFacade
impl CronFacade for ProdCronFacade
Source§fn create_cron(
&self,
caller: &SessionSlot,
kind: CronKind,
prompt: String,
description: Option<String>,
wake: bool,
) -> Result<CronEntry, CronCreateError>
fn create_cron( &self, caller: &SessionSlot, kind: CronKind, prompt: String, description: Option<String>, wake: bool, ) -> Result<CronEntry, CronCreateError>
Validate + register a cron owned by the caller: compute
next_fire, persist, and return the new entry. description is
the caller-supplied human summary (already trimmed to None when
blank).Source§fn list_crons(
&self,
caller: &SessionSlot,
) -> Result<Vec<CronEntry>, CronListError>
fn list_crons( &self, caller: &SessionSlot, ) -> Result<Vec<CronEntry>, CronListError>
The crons the caller registered, within its project. An empty answer
means the caller has none.
Source§fn delete_cron(
&self,
caller: &SessionSlot,
id: &CronId,
) -> Result<CronEntry, CronDeleteError>
fn delete_cron( &self, caller: &SessionSlot, id: &CronId, ) -> Result<CronEntry, CronDeleteError>
Delete the caller’s own cron by id, within its project, and return
the entry as it stood. A refusal says which case it is:
CronDeleteError::NoSuchCron when the project has no such id,
CronDeleteError::NotOwnedByCaller when it has one under
another session.Auto Trait Implementations§
impl !RefUnwindSafe for ProdCronFacade
impl !UnwindSafe for ProdCronFacade
impl Freeze for ProdCronFacade
impl Send for ProdCronFacade
impl Sync for ProdCronFacade
impl Unpin for ProdCronFacade
impl UnsafeUnpin for ProdCronFacade
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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