PayloadSource

Type Alias PayloadSource 

Source
pub type PayloadSource<'a, R> = Option<(&'a R, Wrapping<u32>)>;
Expand description

Defines a segment payload source.

When not None, it contains a ByteBuffer which holds the actual data, and the sequence number associated with the first byte from the buffer.

Aliased Type§

pub enum PayloadSource<'a, R> {
    None,
    Some((&'a R, Wrapping<u32>)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some((&'a R, Wrapping<u32>))

Some value of type T.