Lines Matching refs:Box
2 use alloc::{boxed::Box, sync::Arc, vec::Vec};
277 fn box_clone(&self) -> alloc::boxed::Box<dyn Socket> { in box_clone()
278 return Box::new(self.clone()); in box_clone()
467 fn box_clone(&self) -> alloc::boxed::Box<dyn Socket> { in box_clone()
468 return Box::new(self.clone()); in box_clone()
757 fn accept(&mut self) -> Result<(Box<dyn Socket>, Endpoint), SystemError> { in accept()
788 Box::new(TcpSocket { in accept()
831 fn box_clone(&self) -> alloc::boxed::Box<dyn Socket> { in box_clone()
832 return Box::new(self.clone()); in box_clone()
989 pub struct SocketInode(SpinLock<Box<dyn Socket>>);
992 pub fn new(socket: Box<dyn Socket>) -> Arc<Self> { in new()
997 pub fn inner(&self) -> SpinLockGuard<Box<dyn Socket>> { in inner()