pub struct ReplSession { /* private fields */ }Expand description
REPL session
Implementations§
Source§impl ReplSession
impl ReplSession
Sourcepub fn new(config: ReplConfig) -> Self
pub fn new(config: ReplConfig) -> Self
Create a new REPL session
Sourcepub async fn execute(
&mut self,
command: &str,
) -> Result<CommandResult, Box<dyn Error>>
pub async fn execute( &mut self, command: &str, ) -> Result<CommandResult, Box<dyn Error>>
Execute a command
Sourcepub fn get_info(&self) -> ReplSessionInfo
pub fn get_info(&self) -> ReplSessionInfo
Get session information
Auto Trait Implementations§
impl Freeze for ReplSession
impl RefUnwindSafe for ReplSession
impl Send for ReplSession
impl Sync for ReplSession
impl Unpin 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