pub struct SessionRpcSchedule<'a> { /* private fields */ }Expand description
session.schedule.* RPCs.
Implementations§
Source§impl<'a> SessionRpcSchedule<'a>
impl<'a> SessionRpcSchedule<'a>
Sourcepub async fn list(&self) -> Result<ScheduleList, Error>
pub async fn list(&self) -> Result<ScheduleList, Error>
Lists the session’s currently active scheduled prompts.
Wire method: session.schedule.list.
§Returns
Snapshot of the currently active recurring prompts for this session.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn stop(
&self,
params: ScheduleStopRequest,
) -> Result<ScheduleStopResult, Error>
pub async fn stop( &self, params: ScheduleStopRequest, ) -> Result<ScheduleStopResult, Error>
Removes a scheduled prompt by id.
Wire method: session.schedule.stop.
§Parameters
params- Identifier of the scheduled prompt to remove.
§Returns
Remove a scheduled prompt by id. The result entry is omitted if the id was unknown.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcSchedule<'a>
impl<'a> Clone for SessionRpcSchedule<'a>
Source§fn clone(&self) -> SessionRpcSchedule<'a>
fn clone(&self) -> SessionRpcSchedule<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SessionRpcSchedule<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionRpcSchedule<'a>
impl<'a> !RefUnwindSafe for SessionRpcSchedule<'a>
impl<'a> Send for SessionRpcSchedule<'a>
impl<'a> Sync for SessionRpcSchedule<'a>
impl<'a> Unpin for SessionRpcSchedule<'a>
impl<'a> UnsafeUnpin for SessionRpcSchedule<'a>
impl<'a> !UnwindSafe for SessionRpcSchedule<'a>
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