sipper 0.1.0

A type-safe future that can notify progress
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{Never, Sipper};

/// A [`Straw`] is a [`Sipper`] that can fail.
///
/// This is an extension trait of [`Sipper`], for convenience.
pub trait Straw<Output, Progress = Output, Error = Never>:
    Sipper<Result<Output, Error>, Progress>
{
}

impl<S, Output, Progress, Error> Straw<Output, Progress, Error> for S where
    S: Sipper<Result<Output, Error>, Progress>
{
}