Lines Matching refs:clone
142 fn clone(&self) -> Self { in clone() method
336 let iface = NET_DRIVERS.read().get(&0).unwrap().clone(); in write()
396 Ok(self.metadata.clone()) in metadata()
400 return Box::new(self.clone()); in box_clone()
461 PORT_MANAGER.get_port(self.metadata.socket_type, ip.port, self.handle.clone())?; in do_bind()
598 Ok(self.metadata.clone()) in metadata()
602 return Box::new(self.clone()); in box_clone()
627 return self.remote_endpoint.clone(); in peer_endpoint()
816 let iface: Arc<dyn NetDriver> = NET_DRIVERS.write().get(&0).unwrap().clone(); in connect()
887 PORT_MANAGER.get_port(self.metadata.socket_type, ip.port, self.handle.clone())?; in bind()
963 self.local_endpoint.clone().map(|x| Endpoint::Ip(Some(x))); in endpoint()
982 Ok(self.metadata.clone()) in metadata()
986 return Box::new(self.clone()); in box_clone()