Lines Matching refs:ShutdownType
41 Endpoint, Protocol, ShutdownType,
144 fn shutdown(&mut self, _type: ShutdownType) -> Result<(), SystemError> { in shutdown()
463 pub shutdown_type: RwLock<ShutdownType>,
471 shutdown_type: RwLock::new(ShutdownType::empty()), in new()
476 pub fn shutdown_type(&self) -> ShutdownType { in shutdown_type() argument
480 pub fn shutdown_type_writer(&mut self) -> RwLockWriteGuard<ShutdownType> { in shutdown_type_writer() argument
485 *self.shutdown_type.write() = ShutdownType::empty(); in reset_shutdown_type()
795 shutdown: ShutdownType, in tcp_poll() argument
813 if shutdown == ShutdownType::SHUTDOWN_MASK || state == tcp::State::Closed { in tcp_poll()
817 if shutdown.contains(ShutdownType::RCV_SHUTDOWN) { in tcp_poll()
830 if !(shutdown.contains(ShutdownType::SEND_SHUTDOWN)) { in tcp_poll()
855 pub fn udp_poll(socket: &udp::Socket, shutdown: ShutdownType) -> EPollEventType { in udp_poll()
858 if shutdown.contains(ShutdownType::RCV_SHUTDOWN) { in udp_poll()
863 if shutdown.contains(ShutdownType::SHUTDOWN_MASK) { in udp_poll()
885 pub fn raw_poll(socket: &raw::Socket, shutdown: ShutdownType) -> EPollEventType { in raw_poll()
889 if shutdown.contains(ShutdownType::RCV_SHUTDOWN) { in raw_poll()
894 if shutdown.contains(ShutdownType::SHUTDOWN_MASK) { in raw_poll()