pub struct IOStreamHandler<R: Read, W: Write> { /* private fields */ }
Expand description
A standard instruction handler with Read/Write streams for input/output.
Trait Implementations§
Source§impl<R: Read, W: Write> InstructionHandler for IOStreamHandler<R, W>
impl<R: Read, W: Write> InstructionHandler for IOStreamHandler<R, W>
Source§type Err = Error
type Err = Error
Err return type after processing instructions.
TODO: Convert
Err
into std::ops::Try
once it is stabilizedfn create_vm(initial_context: Self::Context) -> VM<Self>
fn process_instruction( vm_state: &mut VMState, context: &mut Self::Context, instruction: Instruction, ) -> IOResult<()>
Auto Trait Implementations§
impl<R, W> Freeze for IOStreamHandler<R, W>
impl<R, W> RefUnwindSafe for IOStreamHandler<R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for IOStreamHandler<R, W>
impl<R, W> Sync for IOStreamHandler<R, W>
impl<R, W> Unpin for IOStreamHandler<R, W>
impl<R, W> UnwindSafe for IOStreamHandler<R, W>where
R: UnwindSafe,
W: UnwindSafe,
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