pub fn new_udp_endpoint(name: &str, addr: SocketAddr) -> PubSubEndpoint {
        PubSubEndpoint {
            name: String::from(name),
            config: PubSubKind::Udp(addr),
        }
    }
/// Create a PubSub endpoint config with a UDP address.
Create a PubSub endpoint config with a UDP address.
Create a PubSub endpoint config with a UDP address .
pub fn new_udp_endpoint(name: &str, addr: SocketAddr) -> PubSubEndpoint {
        PubSubEndpoint {
            name: String::from(name),
            config: PubSubKind::Udp(addr),
        }
    }
pub fn new_udp_endpoint ( name : & str , addr : SocketAddr ) -> PubSubEndpoint { PubSubEndpoint { name : String :: from ( name ) , config : PubSubKind :: Udp ( addr ) , } }
Create a PubSub endpoint config with a UDP address.
Create a PubSub endpoint config with a UDP address .
name
&str
addr
SocketAddr
name
&str
addr
SocketAddr