[][src]Trait dap2::dods::Dods

pub trait Dods: Dap2 + Send + Sync + Clone + 'static {
#[must_use]    fn dods<'life0, 'async_trait>(
        &'life0 self,
        constraint: Constraint
    ) -> Pin<Box<dyn Future<Output = Result<(u64, Pin<Box<dyn Stream<Item = Result<Bytes, Error>> + Send + 'static>>), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }

A DODS response streaming the DDS header and the (possibly) constrained variable data.

Provided methods

#[must_use]fn dods<'life0, 'async_trait>(
    &'life0 self,
    constraint: Constraint
) -> Pin<Box<dyn Future<Output = Result<(u64, Pin<Box<dyn Stream<Item = Result<Bytes, Error>> + Send + 'static>>), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

A streamed DODS response based on crate::Constraint for a data source implementing crate::Dap2.

Returns a tuple with the content length (in bytes) and a stream of Bytes.

Loading content...

Implementors

impl<T: Dap2 + Send + Sync + Clone + 'static> Dods for T[src]

Loading content...