pub struct PlatoServer { /* private fields */ }Expand description
The PLATO MUD server
Implementations§
Source§impl PlatoServer
impl PlatoServer
pub fn new() -> Self
Sourcepub fn run_interactive(&mut self) -> Result<()>
pub fn run_interactive(&mut self) -> Result<()>
Run the interactive server (stdin/stdout)
Sourcepub fn process_command(
&mut self,
agent: &AgentId,
input: &str,
) -> Result<String, String>
pub fn process_command( &mut self, agent: &AgentId, input: &str, ) -> Result<String, String>
Process a single command (for programmatic use)
pub fn engine(&self) -> &Engine
pub fn engine_mut(&mut self) -> &mut Engine
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlatoServer
impl !RefUnwindSafe for PlatoServer
impl !Send for PlatoServer
impl !Sync for PlatoServer
impl Unpin for PlatoServer
impl UnsafeUnpin for PlatoServer
impl !UnwindSafe for PlatoServer
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