Struct ntex::connect::Connect [−][src]
pub struct Connect<T> { /* fields omitted */ }
Expand description
Connect request
Implementations
impl<T: Address> Connect<T>
[src]
impl<T: Address> Connect<T>
[src]pub fn new(req: T) -> 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]
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]
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]
pub fn set_addr(self, addr: Option<SocketAddr>) -> Self
[src]Use address.
pub fn set_addrs<I>(self, addrs: I) -> Self where
I: IntoIterator<Item = SocketAddr>,
[src]
pub fn set_addrs<I>(self, addrs: I) -> Self where
I: IntoIterator<Item = SocketAddr>,
[src]Use addresses.
pub fn take_addrs(&mut self) -> ConnectTakeAddrsIter
[src]
pub fn take_addrs(&mut self) -> ConnectTakeAddrsIter
[src]Takes preresolved addresses of the request.
Trait Implementations
impl<T: Eq> Eq for Connect<T>
[src]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash + ?Sized,
[src]
impl<T> CallHasher for T where
T: Hash + ?Sized,
[src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self