Struct xmpp_client::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
Methods
impl Client
[src]
fn connect(
stream: TcpStream,
config: XMPPConfig,
credentials: Option<Credentials>
) -> Box<Future<Item = Client, Error = Error>>
stream: TcpStream,
config: XMPPConfig,
credentials: Option<Credentials>
) -> Box<Future<Item = Client, Error = Error>>
fn send_presence(&self) -> Box<Future<Item = (), Error = Error>>
fn get_jid(&self) -> Credentials
fn send(&mut self, f: Event) -> Box<Future<Item = (), Error = Error>>
fn ping(&mut self) -> Receiver<Event>
fn handle(&mut self) -> Box<Future<Item = Consumer, Error = Error>>
Trait Implementations
impl Clone for Client
[src]
fn clone(&self) -> Client
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more