fn write_kernel(&mut self, message: Message) -> Result<(), Errno> {
        let bytes_written = message.data.len();
        self.messages.write_message(message);

        if bytes_written > 0 {
            self.waiters.notify_events(FdEvents::POLLIN);
        }

        Ok(())
    }
/// Writes the provided message into this socket. If the write succeeds, all the bytes were
/// written.
///
/// # Parameters
/// - `message`: The message to write.
///
/// Returns an error if the socket is not connected.
Writes the provided message into this socket. If the write succeeds, all the bytes were
written.
Writes the provided message into this socket . If the write succeeds all the bytes were written .
fn write_kernel(&mut self, message: Message) -> Result<(), Errno> {
        let bytes_written = message.data.len();
        self.messages.write_message(message);
        if bytes_written > 0 {
            self.waiters.notify_events(FdEvents::POLLIN);
        }
        Ok(())
    }
fn write_kernel ( & mut self , message : Message ) -> Result < ( ) , Errno > { let bytes_written = message . data . len ( ) ; self . messages . write_message ( message ) ; if bytes_written > 0 { self . waiters . notify_events ( FdEvents :: POLLIN ) ; } Ok ( ( ) ) }
Writes the provided message into this socket.
Writes the provided message into this socket .
&mut self
message
Message
&mut self
message
Message
The message to write.

Returns an error if the socket is not connected.
The message to write . Returns an error if the socket is not connected .