pub struct TcpConnectRequest {
pub ctx: CallContext,
pub addr: SocketAddr,
pub timeout: Option<Duration>,
}Fields§
§ctx: CallContext§addr: SocketAddr§timeout: Option<Duration>Implementations§
Source§impl TcpConnectRequest
impl TcpConnectRequest
pub fn new( ctx: CallContext, addr: SocketAddr, timeout: Option<Duration>, ) -> Self
Trait Implementations§
Source§impl Clone for TcpConnectRequest
impl Clone for TcpConnectRequest
Source§fn clone(&self) -> TcpConnectRequest
fn clone(&self) -> TcpConnectRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TcpConnectRequest
impl Debug for TcpConnectRequest
Source§impl<C> Service<TcpConnectRequest> for TcpConnectorService<C>where
C: TcpConnector,
impl<C> Service<TcpConnectRequest> for TcpConnectorService<C>where
C: TcpConnector,
Source§type Response = Box<dyn ConnectionIo>
type Response = Box<dyn ConnectionIo>
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<TcpConnectorService<C> as Service<TcpConnectRequest>>::Response, <TcpConnectorService<C> as Service<TcpConnectRequest>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<TcpConnectorService<C> as Service<TcpConnectRequest>>::Response, <TcpConnectorService<C> as Service<TcpConnectRequest>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl !RefUnwindSafe for TcpConnectRequest
impl !UnwindSafe for TcpConnectRequest
impl Freeze for TcpConnectRequest
impl Send for TcpConnectRequest
impl Sync for TcpConnectRequest
impl Unpin for TcpConnectRequest
impl UnsafeUnpin for TcpConnectRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more