pub struct ReplSession {Show 16 fields
pub session_id: String,
pub prompt: String,
pub profile: String,
pub policy: ExecutionPolicy,
pub commands_executed: usize,
pub last_exit_code: i32,
pub trace_mode: bool,
pub history: Vec<String>,
pub history_limit: usize,
pub history_enabled: bool,
pub history_file: Option<PathBuf>,
pub config_path: Option<String>,
pub pending_multiline: Option<String>,
pub last_error: Option<String>,
pub plugin_completion_hooks: BTreeMap<String, Vec<String>>,
pub completion_registries: BTreeMap<String, Vec<String>>,
}Expand description
REPL session model.
Fields§
§session_id: StringSession identifier.
prompt: StringPrompt displayed to user.
profile: StringProfile label shown in prompt.
policy: ExecutionPolicyEffective execution policy.
commands_executed: usizeCommand counter.
last_exit_code: i32Last mapped exit code as integer.
trace_mode: boolTrace mode toggle.
history: Vec<String>Persistent command history buffer.
history_limit: usizeMax history size.
history_enabled: boolWhether history persistence is enabled.
history_file: Option<PathBuf>History file location.
config_path: Option<String>Optional config path override propagated into nested command execution.
pending_multiline: Option<String>Pending multiline input buffer.
last_error: Option<String>Last observed error message.
plugin_completion_hooks: BTreeMap<String, Vec<String>>Plugin completion hooks by namespace.
completion_registries: BTreeMap<String, Vec<String>>Extension completion registries keyed by owner identifier.
Trait Implementations§
Source§impl Clone for ReplSession
impl Clone for ReplSession
Source§fn clone(&self) -> ReplSession
fn clone(&self) -> ReplSession
Returns a duplicate of the value. Read more
1.0.0 · 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 ReplSession
impl Debug for ReplSession
Source§impl PartialEq for ReplSession
impl PartialEq for ReplSession
impl Eq for ReplSession
impl StructuralPartialEq for ReplSession
Auto Trait Implementations§
impl Freeze for ReplSession
impl RefUnwindSafe for ReplSession
impl Send for ReplSession
impl Sync for ReplSession
impl Unpin for ReplSession
impl UnsafeUnpin for ReplSession
impl UnwindSafe for ReplSession
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.