Struct czmq::ZSock
[−]
[src]
pub struct ZSock { /* fields omitted */ }
Methods
impl ZSock
[src]
fn new(sock_type: SocketType) -> ZSock
fn new_pub(endpoint: &str) -> Result<ZSock>
fn new_sub(endpoint: &str, subscribe: Option<&str>) -> Result<ZSock>
fn new_req(endpoint: &str) -> Result<ZSock>
fn new_rep(endpoint: &str) -> Result<ZSock>
fn new_dealer(endpoint: &str) -> Result<ZSock>
fn new_router(endpoint: &str) -> Result<ZSock>
fn new_push(endpoint: &str) -> Result<ZSock>
fn new_pull(endpoint: &str) -> Result<ZSock>
fn new_xpub(endpoint: &str) -> Result<ZSock>
fn new_xsub(endpoint: &str) -> Result<ZSock>
fn new_pair(endpoint: &str) -> Result<ZSock>
fn new_stream(endpoint: &str) -> Result<ZSock>
fn bind(&self, endpoint: &str) -> Result<i32>
fn endpoint<'a>(&'a self) -> Result<&'a str>
fn unbind(&self, endpoint: &str) -> Result<()>
fn connect(&self, endpoint: &str) -> Result<()>
fn disconnect(&self, endpoint: &str) -> Result<()>
fn attach(&self, endpoints: &[&str], serverish: bool) -> Result<()>
fn type_str(&self) -> Result<Result<String, Vec<u8>>>
fn send_str(&self, data: &str) -> Result<()>
fn recv_str(&self) -> Result<Result<String, Vec<u8>>>
fn signal(&self, status: u8) -> Result<()>
fn wait(&self) -> Result<()>
fn flush(&self)
fn zap_domain<'a>(&'a self) -> Result<Result<String, Vec<u8>>>
fn set_zap_domain(&self, zap_domain: &str)
fn mechanism(&self) -> Result<Mechanism>
fn plain_server(&self) -> bool
fn set_plain_server(&self, plain: bool)
fn plain_username<'a>(&'a self) -> Result<Result<String, Vec<u8>>>
fn set_plain_username(&self, username: &str)
fn plain_password<'a>(&'a self) -> Result<Result<String, Vec<u8>>>
fn set_plain_password(&self, password: &str)
fn curve_server(&self) -> bool
fn set_curve_server(&self, curve: bool)
fn curve_publickey<'a>(&'a self) -> Result<Result<String, Vec<u8>>>
fn set_curve_publickey(&self, key: &str)
fn set_curve_publickey_bin(&self, key: &[u8])
fn curve_secretkey<'a>(&'a self) -> Result<Result<String, Vec<u8>>>
fn set_curve_secretkey(&self, key: &str)
fn set_curve_secretkey_bin(&self, key: &[u8])
fn curve_serverkey<'a>(&'a self) -> Result<Result<String, Vec<u8>>>
fn set_curve_serverkey(&self, key: &str)
fn set_curve_serverkey_bin(&self, key: &[u8])
fn zsock_type(&self) -> SocketType
fn sndhwm(&self) -> Result<i32>
fn set_sndhwm(&self, sndhwm: i32)
fn rcvhwm(&self) -> Result<i32>
fn set_rcvhwm(&self, rcvhwm: i32)
fn set_subscribe(&self, subscribe: &str)
fn set_unsubscribe(&self, unsubscribe: &str)
fn identity<'a>(&'a self) -> Result<Result<&'a str, &'a [u8]>>
fn set_identity(&self, identity: &str) -> Result<()>
fn linger(&self) -> Result<i32>
fn set_linger(&self, linger: i32)
fn rcvtimeo(&self) -> Option<i32>
fn set_rcvtimeo(&self, timeout: Option<i32>)
fn sndtimeo(&self) -> Option<i32>
fn set_sndtimeo(&self, timeout: Option<i32>)
fn set_xpub_verbose(&self, verbose: bool)
fn rcvmore(&self) -> bool
fn monitor(&mut self) -> Result<ZMonitor>
Trait Implementations
impl Drop for ZSock
[src]
impl PartialEq for ZSock
[src]
fn eq(&self, other: &ZSock) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.