pub fn write_kernel(&self, message: Message) -> Result<(), Errno> {
        let peer = {
            let inner = self.lock();
            inner.peer().ok_or_else(|| errno!(EPIPE))?.clone()
        };
        let mut peer = peer.lock();
        peer.write_kernel(message)
    }
/// 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 .
pub fn write_kernel(&self, message: Message) -> Result<(), Errno> {
        let peer = {
            let inner = self.lock();
            inner.peer().ok_or_else(|| errno!(EPIPE))?.clone()
        };
        let mut peer = peer.lock();
        peer.write_kernel(message)
    }
pub fn write_kernel ( & self , message : Message ) -> Result < ( ) , Errno > { let peer = { let inner = self . lock ( ) ; inner . peer ( ) . ok_or_else ( | | errno ! ( EPIPE ) ) ? . clone ( ) } ; let mut peer = peer . lock ( ) ; peer . write_kernel ( message ) }
Writes the provided message into this socket.
Writes the provided message into this socket .
&self
message
Message
&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 .