Skip to main content

StreamItem

Type Alias StreamItem 

Source
pub type StreamItem = Result<Bytes>;
Expand description

One inbound message of a stream: raw response Bytes, or an error carrying a gRPC-style status the bridge surfaces to PHP as an exception.

Aliased Type§

pub enum StreamItem {
    Ok(Bytes),
    Err(Error),
}

Variants§

§1.0.0

Ok(Bytes)

Contains the success value

§1.0.0

Err(Error)

Contains the error value