[][src]Struct gadu::conn::Conn

pub struct Conn {
    pub input: Vec<u8>,
    pub output: Vec<u8>,
    pub close: bool,
    pub reg_write: bool,
    pub tags: HashMap<String, String>,
    pub server_ssl_config: Option<SSLConfig>,
    // some fields omitted
}

Fields

input: Vec<u8>output: Vec<u8>close: boolreg_write: booltags: HashMap<String, String>server_ssl_config: Option<SSLConfig>

Methods

impl Conn[src]

pub const KEEP_ALIVE_TIME: Duration[src]

pub fn new(net_conn: NetStream, net_addr: NetAddr) -> Conn[src]

pub fn is_remote_connection(&self) -> bool[src]

pub fn get_address(&self) -> &NetAddr[src]

pub fn get_stream(&self) -> &NetStream[src]

pub fn set_output_buffer(&mut self, output: Vec<u8>)[src]

pub fn add_tag(&mut self, tag: &str, tag_val: &str)[src]

pub fn connect(addr_url: &str) -> Result<Conn, String>[src]

pub fn reconnect(&mut self) -> Result<(), String>[src]

pub fn write(&mut self) -> bool[src]

pub fn read(&mut self, packet: &mut [u8]) -> bool[src]

pub fn shutdown(&mut self)[src]

pub fn is_ssl_handshake_pending(&self) -> bool[src]

pub fn ssl_handshake(&mut self) -> Result<(), Error>[src]

Auto Trait Implementations

impl Send for Conn

impl Unpin for Conn

impl Sync for Conn

impl !UnwindSafe for Conn

impl !RefUnwindSafe for Conn

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T