pub fn write_all<W5500: Registers>(
        &mut self,
        w5500: &mut W5500,
        data: &[u8],
    ) -> Result<(), Error> {
        if !self.connected() {
            Err(Error::NotConnected)
        } else {
            self.send_encrypted_record(w5500, ContentType::ApplicationData, data)
                .map_err(|_| Error::Client(Alert::new_warning(AlertDescription::InternalError)))
        }
    }
/// Send data to the remote host.
///
/// This is more efficient than [`writer`](Self::writer) because the data
/// size is known up-front and a round-trip to the socket buffers to
/// encrypt the record can be avoided.
///
/// This should only be used when the handshake has completed, otherwise
/// the server will send an `unexpected_message` alert.
///
/// # Errors
///
/// This method can only return:
///
/// * [`Error::Client`] with [`AlertDescription::InternalError`]
/// * [`Error::NotConnected`]
Send data to the remote host.
This is more efficient than [`writer`](Self::writer) because the data
size is known up-front and a round-trip to the socket buffers to
encrypt the record can be avoided.

This should only be used when the handshake has completed, otherwise
the server will send an `unexpected_message` alert.
Send data to the remote host . This is more efficient than [ ` writer ` ] ( Self :: writer ) because the data size is known up - front and a round - trip to the socket buffers to encrypt the record can be avoided . This should only be used when the handshake has completed otherwise the server will send an ` unexpected_message ` alert .
pub fn write_all<W5500: Registers>(
        &mut self,
        w5500: &mut W5500,
        data: &[u8],
    ) -> Result<(), Error> {
        if !self.connected() {
            Err(Error::NotConnected)
        } else {
            self.send_encrypted_record(w5500, ContentType::ApplicationData, data)
                .map_err(|_| Error::Client(Alert::new_warning(AlertDescription::InternalError)))
        }
    }
pub fn write_all < W5500 : Registers > ( & mut self , w5500 : & mut W5500 , data : & [ u8 ] , ) -> Result < ( ) , Error > { if ! self . connected ( ) { Err ( Error :: NotConnected ) } else { self . send_encrypted_record ( w5500 , ContentType :: ApplicationData , data ) . map_err ( | _ | Error :: Client ( Alert :: new_warning ( AlertDescription :: InternalError ) ) ) } }
Send data to the remote host.
Send data to the remote host .
&mut self
w5500
&mut W5500
data
&[u8]
&mut self
w5500
&mut W5500
data
&[u8]
errors
This method can only return.

[`Error::Client`] with [`AlertDescription::InternalError`]
[`Error::NotConnected`]
This method can only return . [ ` Error :: Client ` ] with [ ` AlertDescription :: InternalError ` ] [ ` Error :: NotConnected ` ]