relax Send requirement on some drier stream extensions
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
1b1198771f
commit
173c0b35ad
4 changed files with 11 additions and 11 deletions
|
@ -10,7 +10,7 @@ pub trait TryExpect<'a, Item> {
|
|||
|
||||
impl<'a, T, Item> TryExpect<'a, Item> for T
|
||||
where
|
||||
T: Stream<Item = Result<Item>> + TryStream + Send + 'a,
|
||||
T: Stream<Item = Result<Item>> + Send + TryStream + 'a,
|
||||
Item: 'a,
|
||||
{
|
||||
#[inline]
|
||||
|
|
|
@ -16,7 +16,7 @@ use futures::{
|
|||
/// This interface is not necessarily complete; feel free to add as-needed.
|
||||
pub trait ReadyExt<Item>
|
||||
where
|
||||
Self: Stream<Item = Item> + Send + Sized,
|
||||
Self: Stream<Item = Item> + Sized,
|
||||
{
|
||||
fn ready_all<F>(self, f: F) -> All<Self, Ready<bool>, impl FnMut(Item) -> Ready<bool>>
|
||||
where
|
||||
|
@ -93,7 +93,7 @@ where
|
|||
|
||||
impl<Item, S> ReadyExt<Item> for S
|
||||
where
|
||||
S: Stream<Item = Item> + Send + Sized,
|
||||
S: Stream<Item = Item> + Sized,
|
||||
{
|
||||
#[inline]
|
||||
fn ready_all<F>(self, f: F) -> All<Self, Ready<bool>, impl FnMut(Item) -> Ready<bool>>
|
||||
|
|
|
@ -13,8 +13,8 @@ use crate::Result;
|
|||
/// This interface is not necessarily complete; feel free to add as-needed.
|
||||
pub trait TryReadyExt<T, E, S>
|
||||
where
|
||||
S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + Send + ?Sized,
|
||||
Self: TryStream + Send + Sized,
|
||||
S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + ?Sized,
|
||||
Self: TryStream + Sized,
|
||||
{
|
||||
fn ready_and_then<U, F>(
|
||||
self,
|
||||
|
@ -67,8 +67,8 @@ where
|
|||
|
||||
impl<T, E, S> TryReadyExt<T, E, S> for S
|
||||
where
|
||||
S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + Send + ?Sized,
|
||||
Self: TryStream + Send + Sized,
|
||||
S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + ?Sized,
|
||||
Self: TryStream + Sized,
|
||||
{
|
||||
#[inline]
|
||||
fn ready_and_then<U, F>(
|
||||
|
|
|
@ -8,8 +8,8 @@ use crate::Result;
|
|||
/// TryStreamTools
|
||||
pub trait TryTools<T, E, S>
|
||||
where
|
||||
S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + Send + ?Sized,
|
||||
Self: TryStream + Send + Sized,
|
||||
S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + ?Sized,
|
||||
Self: TryStream + Sized,
|
||||
{
|
||||
fn try_take(
|
||||
self,
|
||||
|
@ -23,8 +23,8 @@ where
|
|||
|
||||
impl<T, E, S> TryTools<T, E, S> for S
|
||||
where
|
||||
S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + Send + ?Sized,
|
||||
Self: TryStream + Send + Sized,
|
||||
S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + ?Sized,
|
||||
Self: TryStream + Sized,
|
||||
{
|
||||
#[inline]
|
||||
fn try_take(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue