Skip to main content

ToSocketDestination

Trait ToSocketDestination 

Source
pub trait ToSocketDestination {
    // Required method
    fn to_destination_address(
        &self,
    ) -> Result<DestinationAddress, ProxyStreamError>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToSocketDestination for &str

Source§

impl ToSocketDestination for SocketAddr

Implementors§