Struct actix_http::client::TcpConnect [−][src]
Connection info.
Implementations
impl<T> Connect<T> where
T: Address, [src]
T: Address,
pub fn new(req: T) -> Connect<T>[src]
Create Connect instance by splitting the string by ‘:’ and convert the second part to u16
pub fn with_addr(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) -> Connect<T>[src]
Use port if address does not provide one.
Default value is 0.
pub fn set_addr(self, addr: Option<SocketAddr>) -> Connect<T>[src]
Set address.
pub fn set_addrs<I>(self, addrs: I) -> Connect<T> where
I: IntoIterator<Item = SocketAddr>, [src]
I: IntoIterator<Item = SocketAddr>,
Set list of addresses.
pub fn set_local_addr(self, addr: impl Into<IpAddr>) -> Connect<T>[src]
Set local_addr of connect.
pub fn hostname(&self) -> &str[src]
Get hostname.
pub fn port(&self) -> u16[src]
Get request port.
pub fn addrs(&self) -> ConnectAddrsIter<'_>[src]
Get resolved request addresses.
pub fn take_addrs(&mut self) -> ConnectAddrsIter<'static>[src]
Take resolved request addresses.
Trait Implementations
impl<T> Debug for Connect<T> where
T: Debug, [src]
T: Debug,
impl<T> Display for Connect<T> where
T: Address, [src]
T: Address,
impl<T> Eq for Connect<T> where
T: Eq, [src]
T: Eq,
impl<T> From<T> for Connect<T> where
T: Address, [src]
T: Address,
impl<T> Hash for Connect<T> where
T: Hash, [src]
T: Hash,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<T> PartialEq<Connect<T>> for Connect<T> where
T: PartialEq<T>, [src]
T: PartialEq<T>,
impl<T> StructuralEq for Connect<T>[src]
impl<T> StructuralPartialEq for Connect<T>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Connect<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Connect<T> where
T: Send,
T: Send,
impl<T> Sync for Connect<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Connect<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Connect<T> where
T: UnwindSafe,
T: UnwindSafe,
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> CallHasher for T where
T: Hash + ?Sized, [src]
T: Hash + ?Sized,
pub default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64 where
B: BuildHasher,
H: Hash + ?Sized, [src]
B: BuildHasher,
H: Hash + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[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> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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.
pub 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.
pub 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>,