[−][src]Struct actix_web::actix::resolver::Connect
Fields
name: String
port: Option<u16>
timeout: Duration
Methods
impl Connect
[src]
pub fn host<T>(host: T) -> Connect where
T: AsRef<str>,
[src]
T: AsRef<str>,
pub fn host_and_port<T>(host: T, port: u16) -> Connect where
T: AsRef<str>,
[src]
T: AsRef<str>,
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
fn handle(
&mut self,
msg: Connect,
&mut <Resolver as Actor>::Context
) -> <Resolver as Handler<Connect>>::Result
[src]
&mut self,
msg: Connect,
&mut <Resolver as Actor>::Context
) -> <Resolver as Handler<Connect>>::Result
impl Debug for Connect
[src]
impl Eq for Connect
[src]
impl PartialEq<Connect> for Connect
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Erased for T
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,