[][src]Struct actix_web::actix::actors::resolver::Resolve

pub struct Resolve {
    pub name: String,
    pub port: Option<u16>,
}

Fields

name: Stringport: Option<u16>

Methods

impl Resolve[src]

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

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

Trait Implementations

impl Message for Resolve[src]

type Result = Result<VecDeque<SocketAddr>, ResolverError>

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

impl Handler<Resolve> for Resolver[src]

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

The type of value that this handle will return

impl Debug for Resolve[src]

impl Eq for Resolve[src]

impl PartialEq<Resolve> for Resolve[src]

Auto Trait Implementations

impl Send for Resolve

impl Sync for Resolve

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]