mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 02:19:22 +02:00
better actix mod re-exports
This commit is contained in:
@ -1,16 +1,12 @@
|
||||
extern crate actix;
|
||||
|
||||
use std::collections::{HashMap, VecDeque};
|
||||
use std::net::Shutdown;
|
||||
use std::time::{Duration, Instant};
|
||||
use std::{fmt, io, mem, time};
|
||||
|
||||
use self::actix::actors::{Connect as ResolveConnect, Connector, ConnectorError};
|
||||
use self::actix::fut::WrapFuture;
|
||||
use self::actix::registry::SystemService;
|
||||
use self::actix::{
|
||||
use actix::resolver::{Connect as ResolveConnect, Connector, ConnectorError};
|
||||
use actix::{
|
||||
fut, Actor, ActorFuture, ActorResponse, AsyncContext, Context, ContextFutureSpawner,
|
||||
Handler, Message, Recipient, StreamHandler, Supervised,
|
||||
Handler, Message, Recipient, StreamHandler, Supervised, SystemService, WrapFuture,
|
||||
};
|
||||
|
||||
use futures::sync::{mpsc, oneshot};
|
||||
@ -287,7 +283,6 @@ impl ClientConnector {
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![cfg(feature="alpn")]
|
||||
/// # extern crate actix;
|
||||
/// # extern crate actix_web;
|
||||
/// # extern crate futures;
|
||||
/// # extern crate tokio;
|
||||
@ -295,14 +290,12 @@ impl ClientConnector {
|
||||
/// # use std::io::Write;
|
||||
/// # use std::process;
|
||||
/// extern crate openssl;
|
||||
/// use actix::prelude::*;
|
||||
/// use actix_web::client::{Connect, ClientConnector};
|
||||
/// use actix_web::client::{ClientConnector, Connect};
|
||||
///
|
||||
/// use openssl::ssl::{SslMethod, SslConnector};
|
||||
/// use openssl::ssl::{SslConnector, SslMethod};
|
||||
///
|
||||
/// fn main() {
|
||||
/// tokio::run(future::lazy(|| {
|
||||
///
|
||||
/// // Start `ClientConnector` with custom `SslConnector`
|
||||
/// let ssl_conn = SslConnector::builder(SslMethod::tls()).unwrap().build();
|
||||
/// let conn = ClientConnector::with_connector(ssl_conn).start();
|
||||
|
@ -1,5 +1,3 @@
|
||||
extern crate actix;
|
||||
|
||||
use bytes::{Bytes, BytesMut};
|
||||
use futures::sync::oneshot;
|
||||
use futures::{Async, Future, Poll};
|
||||
@ -8,7 +6,7 @@ use std::time::{Duration, Instant};
|
||||
use std::{io, mem};
|
||||
use tokio_timer::Delay;
|
||||
|
||||
use self::actix::prelude::*;
|
||||
use actix::{Addr, Request, SystemService};
|
||||
|
||||
use super::{
|
||||
ClientBody, ClientBodyStream, ClientConnector, ClientConnectorError, ClientRequest,
|
||||
@ -56,7 +54,7 @@ impl From<ClientConnectorError> for SendRequestError {
|
||||
|
||||
enum State {
|
||||
New,
|
||||
Connect(actix::dev::Request<ClientConnector, Connect>),
|
||||
Connect(Request<ClientConnector, Connect>),
|
||||
Connection(Connection),
|
||||
Send(Box<Pipeline>),
|
||||
None,
|
||||
|
Reference in New Issue
Block a user