Skip to main content

Terminal

Trait Terminal 

Source
pub trait Terminal: Debug {
    // Required methods
    fn size(&self) -> (usize, usize);
    fn send(&mut self, stream: &[u8]) -> Result<(), String>;
    fn receive(&mut self) -> Result<Option<Vec<u8>>, String>;
}
Expand description

The task’s terminal: SEND writes a 3270 data stream to it, and RECEIVE reads the stream the operator’s next AID key sends back.

Required Methods§

Source

fn size(&self) -> (usize, usize)

Source

fn send(&mut self, stream: &[u8]) -> Result<(), String>

Source

fn receive(&mut self) -> Result<Option<Vec<u8>>, String>

None when the operator has nothing more to send.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§