pub struct Ipcon { /* private fields */ }Implementations
sourceimpl Ipcon
impl Ipcon
pub fn to_handler(u: usize) -> *mut c_void
pub fn new(peer_name: Option<&str>, flag: Option<IpconFlag>) -> Option<Ipcon>
pub fn get_read_fd(&self) -> Option<i32>
pub fn get_write_fd(&self) -> Option<i32>
pub fn get_ctrl_fd(&self) -> Option<i32>
pub fn is_peer_present(&self, peer: &str) -> bool
pub fn is_group_present(&self, peer: &str, group: &str) -> bool
pub fn receive_msg(&self) -> Result<IpconMsg>
pub fn send_unicast_msg(&self, peer: &str, buf: Bytes) -> Result<()>
pub fn send_unicast_msg_by_ref(&self, peer: &str, buf: &Bytes) -> Result<()>
pub fn register_group(&self, group: &str) -> Result<()>
pub fn unregister_group(&self, group: &str) -> Result<()>
pub fn join_group(&self, peer: &str, group: &str) -> Result<()>
pub fn leave_group(&self, peer: &str, group: &str) -> Result<()>
pub fn send_multicast(&self, group: &str, buf: Bytes, sync: bool) -> Result<()>
pub fn send_multicast_by_ref(
&self,
group: &str,
buf: &Bytes,
sync: bool
) -> Result<()>
pub fn receive_msg_timeout(&self, tv_sec: u32, tv_usec: u32) -> Result<IpconMsg>
pub fn receive_msg_nonblock(&self) -> Result<IpconMsg>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ipcon
impl Send for Ipcon
impl Sync for Ipcon
impl Unpin for Ipcon
impl UnwindSafe for Ipcon
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more