pub struct ProtocolHandler;Expand description
Handles text protocol commands for a PlatoEngine.
Implementations§
Source§impl ProtocolHandler
impl ProtocolHandler
Sourcepub fn handle(engine: &mut PlatoEngine, command: &str) -> String
pub fn handle(engine: &mut PlatoEngine, command: &str) -> String
Parse and execute a text command against the engine. Returns the response string.
Auto Trait Implementations§
impl Freeze for ProtocolHandler
impl RefUnwindSafe for ProtocolHandler
impl Send for ProtocolHandler
impl Sync for ProtocolHandler
impl Unpin for ProtocolHandler
impl UnsafeUnpin for ProtocolHandler
impl UnwindSafe for ProtocolHandler
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