aboutsummaryrefslogblamecommitdiffstats
path: root/src/platform/endpoint.rs
blob: 4702aab36f9b253c8b76ebf69298780ff04c2d46 (plain) (tree)
1
2
3
4
5
6
7

                         
                                    

                                              
                            
 
use std::net::SocketAddr;

pub trait Endpoint: Send + 'static {
    fn from_address(addr: SocketAddr) -> Self;
    fn into_address(&self) -> SocketAddr;
    fn clear_src(&mut self);
}