[][src]Trait iso8583_rs::iso8583::mli::MLI

pub trait MLI: Sync + Send {
    fn parse(&self, in_buf: &mut dyn Read) -> Result<u32, IsoError>;
fn create(&self, n: &usize) -> Result<Vec<u8>, IsoError>;
fn is_available(&self, stream: &TcpStream) -> Result<bool, IsoError>; }

Required methods

fn parse(&self, in_buf: &mut dyn Read) -> Result<u32, IsoError>

Extracts MLI from in_buf

fn create(&self, n: &usize) -> Result<Vec<u8>, IsoError>

Creates a Vec that represents the MLI containing n bytes

fn is_available(&self, stream: &TcpStream) -> Result<bool, IsoError>

Checks to see if data is available for MLI::parse

Loading content...

Implementors

impl MLI for MLI2E[src]

impl MLI for MLI2I[src]

impl MLI for MLI4E[src]

impl MLI for MLI4I[src]

Loading content...