mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-23 06:42:20 +00:00
relax Send requirement on some drier stream extensions
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
1b1198771f
commit
d98ec6bf46
4 files changed
+11
-11
No files matched your search
@@ -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 @@
|
||||
/// 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 @@ fn ready_skip_while<'a, F>(
|
||||
|
||||
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 @@
|
||||
/// 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 @@ fn ready_try_take_while<F>(
|
||||
|
||||
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 @@
|
||||
/// 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 @@ impl FnMut(&S::Ok) -> Ready<Result<bool, S::Error>>,
|
||||
|
||||
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(
|
||||
|
||||
Reference in new issue
Block a user