[][src]Struct actix_connect::Connect

pub struct Connect<T> { /* fields omitted */ }

Connect request

Methods

impl<T: Address> Connect<T>[src]

pub fn new(req: T) -> Connect<T>[src]

Create Connect instance by spliting the string by ':' and convert the second part to u16

pub fn with(req: T, addr: SocketAddr) -> Connect<T>[src]

Create new Connect instance from host and address. Connector skips name resolution stage for such connect messages.

pub fn set_port(self, port: u16) -> Self[src]

Use port if address does not provide one.

By default it set to 0

pub fn set_addr(self, addr: Option<SocketAddr>) -> Self[src]

Use address.

pub fn host(&self) -> &str[src]

Host name

pub fn port(&self) -> u16[src]

Port of the request

Trait Implementations

impl<T: Eq> Eq for Connect<T>[src]

impl<T: PartialEq> PartialEq<Connect<T>> for Connect<T>[src]

impl<T: Address> From<T> for Connect<T>[src]

impl<T: Address> Display for Connect<T>[src]

impl<T: Debug> Debug for Connect<T>[src]

impl<T: Hash> Hash for Connect<T>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<T> Send for Connect<T> where
    T: Send

impl<T> Sync for Connect<T> where
    T: Sync

Blanket Implementations

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

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[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