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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".