Lines Matching refs:Endpoint
4 use crate::{libs::spinlock::SpinLock, net::Endpoint};
63 fn read(&self, buf: &mut [u8]) -> (Result<usize, SystemError>, Endpoint) { in read() argument
71 (Ok(len), Endpoint::Inode(self.peer_inode.clone())) in read()
74 fn write(&self, buf: &[u8], _to: Option<Endpoint>) -> Result<usize, SystemError> { in write()
84 fn connect(&mut self, endpoint: Endpoint) -> Result<(), SystemError> { in connect()
89 if let Endpoint::Inode(inode) = endpoint { in connect()
174 fn read(&self, buf: &mut [u8]) -> (Result<usize, SystemError>, Endpoint) { in read() argument
182 (Ok(len), Endpoint::Inode(self.peer_inode.clone())) in read()
185 fn write(&self, buf: &[u8], _to: Option<Endpoint>) -> Result<usize, SystemError> { in write()
195 fn connect(&mut self, endpoint: Endpoint) -> Result<(), SystemError> { in connect()
200 if let Endpoint::Inode(inode) = endpoint { in connect()