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

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

Resolver actor is deprecated and will be removed in a future release.

Fields

name: String
👎 Deprecated since 0.12.0:

Resolver actor is deprecated and will be removed in a future release.

port: Option<u16>
👎 Deprecated since 0.12.0:

Resolver actor is deprecated and will be removed in a future release.

timeout: Duration
👎 Deprecated since 0.12.0:

Resolver actor is deprecated and will be removed in a future release.

Implementations

impl Connect[src]

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

👎 Deprecated since 0.12.0:

Resolver actor is deprecated and will be removed in a future release.

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

👎 Deprecated since 0.12.0:

Resolver actor is deprecated and will be removed in a future release.

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

👎 Deprecated since 0.12.0:

Resolver actor is deprecated and will be removed in a future release.

Set connect timeout

By default timeout is set to a 1 second.

Trait Implementations

impl Debug for Connect[src]

impl Eq for Connect[src]

impl Handler<Connect> for Resolver[src]

type Result = ResponseActFuture<Self, Result<TcpStream, ResolverError>>

The type of value that this handler will return. Read more

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 PartialEq<Connect> for Connect[src]

impl StructuralEq for Connect[src]

impl StructuralPartialEq for Connect[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,