async-flow 0.1.5

Async abstractions for flow-based programming (FBP).
Documentation
// This is free and unencumbered software released into the public domain.

use thiserror::Error;

#[derive(Clone, Copy, Debug, Eq, Error, PartialEq)]
#[error("RecvError")]
pub struct RecvError;

impl From<crate::io::PortState> for RecvError {
    fn from(_input: crate::io::PortState) -> Self {
        Self
    }
}

#[cfg(feature = "flume")]
impl From<flume::RecvError> for RecvError {
    fn from(_input: flume::RecvError) -> Self {
        Self // TODO
    }
}