Skip to main content

SplitItem

Type Alias SplitItem 

Source
pub type SplitItem = Result<Vec<u8>, Error>;
Expand description

What a channel carries: a chunk of one side’s bytes, or the error that ended it.

Aliased Type§

pub enum SplitItem {
    Ok(Vec<u8>),
    Err(Error),
}

Variants§

§1.0.0

Ok(Vec<u8>)

Contains the success value

§1.0.0

Err(Error)

Contains the error value