Skip to main content

AcceptedChunk

Type Alias AcceptedChunk 

Source
pub type AcceptedChunk = Result<Option<StreamSegment>, Box<Event>>;
Expand description

What StreamAssembler::accept_event made of an event: a completed segment, a chunk it absorbed (Ok(None)), or the event handed back because it was not a stream chunk at all.

Aliased Type§

pub enum AcceptedChunk {
    Ok(Option<StreamSegment>),
    Err(Box<Event>),
}

Variants§

§1.0.0

Ok(Option<StreamSegment>)

Contains the success value

§1.0.0

Err(Box<Event>)

Contains the error value