Skip to main content

StreamResult

Type Alias StreamResult 

Source
pub type StreamResult = Result<Pin<Box<dyn Stream<Item = ProviderEvent> + Send>>, ProviderError>;
Expand description
Stable since 0.63.0
Provider trait, streaming options, and provider registry. Stream result type alias

Aliased Type§

pub enum StreamResult {
    Ok(Pin<Box<dyn Stream<Item = ProviderEvent> + Send>>),
    Err(ProviderError),
}

Variants§

§1.0.0

Ok(Pin<Box<dyn Stream<Item = ProviderEvent> + Send>>)

Contains the success value

§1.0.0

Err(ProviderError)

Contains the error value