[][src]Struct actix_web::actix::resolver::Connect

pub struct Connect {
    pub name: String,
    pub port: Option<u16>,
    pub timeout: Duration,
}

Fields

name: Stringport: Option<u16>timeout: Duration

Methods

impl Connect[src]

pub fn host<T>(host: T) -> Connect where
    T: AsRef<str>, 
[src]

pub fn host_and_port<T>(host: T, port: u16) -> Connect where
    T: AsRef<str>, 
[src]

pub fn timeout(self, timeout: Duration) -> Connect[src]

Set connect timeout

By default timeout is set to a 1 second.

Trait Implementations

impl Message for Connect[src]

type Result = Result<TcpStream, ResolverError>

The type of value that this message will resolved with if it is successful. Read more

impl Handler<Connect> for Resolver[src]

type Result = Box<dyn ActorFuture<Error = ResolverError, Item = TcpStream, Actor = Resolver> + 'static>

The type of value that this handle will return

impl Debug for Connect[src]

impl Eq for Connect[src]

impl PartialEq<Connect> for Connect[src]

Auto Trait Implementations

impl Send for Connect

impl Sync for Connect

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]