[−][src]Struct gadu::conn::Conn
Fields
input: Vec<u8>
output: Vec<u8>
close: bool
reg_write: bool
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,