Move Maybe* traits back to iced_futures
This commit is contained in:
parent
4ab4ffc9cf
commit
4e7cbbf98a
11 changed files with 12 additions and 14 deletions
|
|
@ -35,7 +35,6 @@ mod color;
|
|||
mod content_fit;
|
||||
mod element;
|
||||
mod length;
|
||||
mod maybe;
|
||||
mod padding;
|
||||
mod pixels;
|
||||
mod point;
|
||||
|
|
@ -60,7 +59,6 @@ pub use font::Font;
|
|||
pub use gradient::Gradient;
|
||||
pub use layout::Layout;
|
||||
pub use length::Length;
|
||||
pub use maybe::{MaybeSend, MaybeSync};
|
||||
pub use overlay::Overlay;
|
||||
pub use padding::Padding;
|
||||
pub use pixels::Pixels;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
//! Listen to runtime events.
|
||||
use crate::core::event::{self, Event};
|
||||
use crate::core::window;
|
||||
use crate::core::MaybeSend;
|
||||
use crate::subscription::{self, Subscription};
|
||||
use crate::MaybeSend;
|
||||
|
||||
/// Returns a [`Subscription`] to all the ignored runtime events.
|
||||
///
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
//! Choose your preferred executor to power a runtime.
|
||||
use crate::core::MaybeSend;
|
||||
use crate::MaybeSend;
|
||||
|
||||
use futures::Future;
|
||||
|
||||
/// A type that can run futures.
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
use crate::core;
|
||||
use crate::core::event;
|
||||
use crate::core::keyboard::{Event, Key, Modifiers};
|
||||
use crate::core::MaybeSend;
|
||||
use crate::subscription::{self, Subscription};
|
||||
use crate::MaybeSend;
|
||||
|
||||
/// Listens to keyboard key presses and calls the given function
|
||||
/// map them into actual messages.
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
pub use futures;
|
||||
pub use iced_core as core;
|
||||
|
||||
mod maybe;
|
||||
mod runtime;
|
||||
|
||||
pub mod backend;
|
||||
|
|
@ -17,6 +18,7 @@ pub mod keyboard;
|
|||
pub mod subscription;
|
||||
|
||||
pub use executor::Executor;
|
||||
pub use maybe::{MaybeSend, MaybeSync};
|
||||
pub use platform::*;
|
||||
pub use runtime::Runtime;
|
||||
pub use subscription::Subscription;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
//! Run commands and keep track of subscriptions.
|
||||
use crate::core::MaybeSend;
|
||||
use crate::subscription;
|
||||
use crate::{BoxFuture, BoxStream, Executor};
|
||||
use crate::{BoxFuture, BoxStream, Executor, MaybeSend};
|
||||
|
||||
use futures::{channel::mpsc, Sink};
|
||||
use std::marker::PhantomData;
|
||||
|
|
|
|||
|
|
@ -5,9 +5,8 @@ pub use tracker::Tracker;
|
|||
|
||||
use crate::core::event;
|
||||
use crate::core::window;
|
||||
use crate::core::MaybeSend;
|
||||
use crate::futures::{Future, Stream};
|
||||
use crate::BoxStream;
|
||||
use crate::{BoxStream, MaybeSend};
|
||||
|
||||
use futures::channel::mpsc;
|
||||
use futures::never::Never;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
use crate::core::MaybeSend;
|
||||
use crate::subscription::{Event, Hasher, Recipe};
|
||||
use crate::BoxFuture;
|
||||
use crate::{BoxFuture, MaybeSend};
|
||||
|
||||
use futures::channel::mpsc;
|
||||
use futures::sink::{Sink, SinkExt};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
//! A compositor is responsible for initializing a renderer and managing window
|
||||
//! surfaces.
|
||||
use crate::core::{Color, MaybeSend, MaybeSync};
|
||||
use crate::core::Color;
|
||||
use crate::futures::{MaybeSend, MaybeSync};
|
||||
use crate::{Error, Settings, Viewport};
|
||||
|
||||
use raw_window_handle::{HasDisplayHandle, HasWindowHandle};
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
use crate::core::widget;
|
||||
use crate::core::MaybeSend;
|
||||
use crate::futures::futures::channel::mpsc;
|
||||
use crate::futures::futures::channel::oneshot;
|
||||
use crate::futures::futures::future::{self, FutureExt};
|
||||
use crate::futures::futures::never::Never;
|
||||
use crate::futures::futures::stream::{self, Stream, StreamExt};
|
||||
use crate::futures::{boxed_stream, BoxStream};
|
||||
use crate::futures::{boxed_stream, BoxStream, MaybeSend};
|
||||
use crate::Action;
|
||||
|
||||
use std::future::Future;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue