Struct xmodem::Xmodem [] [src]

pub struct Xmodem {
    pub max_errors: u32,
    pub pad_byte: u8,
    pub block_length: BlockLength,
    // some fields omitted
}

Fields

max_errors: u32 pad_byte: u8 block_length: BlockLength

Methods

impl Xmodem
[src]

fn new() -> Self

fn send<D: Read + Write, R: Read>(&mut self, dev: &mut D, stream: &mut R) -> Result<()>

fn start_send<D: Read + Write>(&mut self, dev: &mut D) -> Result<()>

Trait Implementations

impl Debug for Xmodem
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Xmodem
[src]

fn clone(&self) -> Xmodem

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Xmodem
[src]