[−][src]Struct actori::actors::resolver::Connect
Fields
name: String
port: 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.
fn handle(&mut self, msg: Connect, _: &mut Self::Context) -> Self::Result
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Ffn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut F
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
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, U> TryInto<U> 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,