pub enum ScheduleLimitError {
Store(AgentLoopError),
Rejected(String),
}Expand description
Outcome of a failed session-schedule limit check.
Distinguishes a store/count failure (surface as an internal error) from a limit rejection (surface as a user-facing tool error) so callers preserve the same behavior they had with the inline checks.
Variants§
Store(AgentLoopError)
Counting active schedules failed.
Rejected(String)
A limit was exceeded; carries the user-facing message.
Auto Trait Implementations§
impl Freeze for ScheduleLimitError
impl RefUnwindSafe for ScheduleLimitError
impl Send for ScheduleLimitError
impl Sync for ScheduleLimitError
impl Unpin for ScheduleLimitError
impl UnsafeUnpin for ScheduleLimitError
impl UnwindSafe for ScheduleLimitError
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