/// Reads all the available messages out of this socket.
///
/// If no data is available, or this socket is not readable, then an empty vector is returned.
Reads all the available messages out of this socket.
If no data is available, or this socket is not readable, then an empty vector is returned.
Reads all the available messages out of this socket . If no data is available or this socket is not readable then an empty vector is returned .
pub fn read_kernel(&mut self) -> Vec<Message> {
        let (messages, bytes_read) = self.messages.read_bytes(&mut None, usize::MAX);
        if bytes_read > 0 {
            self.waiters.notify_events(FdEvents::POLLOUT);
        }
        messages
    }
pub fn read_kernel ( & mut self ) -> Vec < Message > { let ( messages , bytes_read ) = self . messages . read_bytes ( & mut None , usize :: MAX ) ; if bytes_read > 0 { self . waiters . notify_events ( FdEvents :: POLLOUT ) ; } messages }
Reads all the available messages out of this socket.
Reads all the available messages out of this socket .
&mut self