Trait esp_idf_svc::tls::Socket

source ·
pub trait Socket {
    // Required methods
    fn handle(&self) -> i32;
    fn release(&mut self) -> Result<(), EspError>;
}

Required Methods§

source

fn handle(&self) -> i32

Returns the integer FD.

source

fn release(&mut self) -> Result<(), EspError>

This is called before cleaning up the the tls context and is responsible for essentially giving up ownership of the socket such that it can safely be closed by the ESP IDF.

Implementors§