[][src]Struct actori::actors::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: AsRef<str>>(host: T) -> Connect[src]

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

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

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.

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

impl RefUnwindSafe for Connect

impl Send for Connect

impl Sync for Connect

impl Unpin for Connect

impl UnwindSafe for Connect

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,