pub struct RuntimelessClientConfig(/* private fields */);Expand description
An in-memory Connector to use with RuntimelessServer.
Implementations§
Trait Implementations§
Source§impl Clone for RuntimelessClientConfig
impl Clone for RuntimelessClientConfig
Source§fn clone(&self) -> RuntimelessClientConfig
fn clone(&self) -> RuntimelessClientConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Connector for RuntimelessClientConfig
impl Connector for RuntimelessClientConfig
Source§type Runtime = RuntimelessRuntime
type Runtime = RuntimelessRuntime
The
RuntimeTrait for this ConnectorSource§type Udp = ()
type Udp = ()
The async UDP socket type for this connector. Used by QUIC adapters
for HTTP/3 support. Connectors that do not support UDP should set
this to
().Source§async fn connect(&self, url: &Url) -> Result<Self::Transport>
async fn connect(&self, url: &Url) -> Result<Self::Transport>
Initiate a connection to the provided url
Source§async fn resolve(&self, _host: &str, _port: u16) -> Result<Vec<SocketAddr>>
async fn resolve(&self, _host: &str, _port: u16) -> Result<Vec<SocketAddr>>
Perform a DNS lookup for a given host-and-port
Source§fn arced(self) -> ArcedConnectorwhere
Self: Sized,
fn arced(self) -> ArcedConnectorwhere
Self: Sized,
Returns an object-safe
ArcedConnector. Do not implement this.Source§impl Debug for RuntimelessClientConfig
impl Debug for RuntimelessClientConfig
Source§impl Default for RuntimelessClientConfig
impl Default for RuntimelessClientConfig
Source§fn default() -> RuntimelessClientConfig
fn default() -> RuntimelessClientConfig
Returns the “default value” for a type. Read more
impl Copy for RuntimelessClientConfig
Auto Trait Implementations§
impl Freeze for RuntimelessClientConfig
impl RefUnwindSafe for RuntimelessClientConfig
impl Send for RuntimelessClientConfig
impl Sync for RuntimelessClientConfig
impl Unpin for RuntimelessClientConfig
impl UnsafeUnpin for RuntimelessClientConfig
impl UnwindSafe for RuntimelessClientConfig
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