pub struct AgentSessionControlError {
pub code: AgentSessionControlErrorCode,
pub message: String,
pub current_revision: Option<u64>,
}Expand description
Prompt-safe control error.
Fields§
§code: AgentSessionControlErrorCodeStable category.
message: StringBounded safe message.
current_revision: Option<u64>Current safe session revision for CAS conflicts.
Trait Implementations§
Source§impl Clone for AgentSessionControlError
impl Clone for AgentSessionControlError
Source§fn clone(&self) -> AgentSessionControlError
fn clone(&self) -> AgentSessionControlError
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 moreSource§impl Debug for AgentSessionControlError
impl Debug for AgentSessionControlError
Source§impl<'de> Deserialize<'de> for AgentSessionControlError
impl<'de> Deserialize<'de> for AgentSessionControlError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AgentSessionControlError
impl Display for AgentSessionControlError
impl Eq for AgentSessionControlError
Source§impl Error for AgentSessionControlError
impl Error for AgentSessionControlError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AgentSessionControlError
impl PartialEq for AgentSessionControlError
Source§impl Serialize for AgentSessionControlError
impl Serialize for AgentSessionControlError
impl StructuralPartialEq for AgentSessionControlError
Auto Trait Implementations§
impl Freeze for AgentSessionControlError
impl RefUnwindSafe for AgentSessionControlError
impl Send for AgentSessionControlError
impl Sync for AgentSessionControlError
impl Unpin for AgentSessionControlError
impl UnsafeUnpin for AgentSessionControlError
impl UnwindSafe for AgentSessionControlError
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