pub struct EventChannel { /* private fields */ }Expand description
An rdma_cm event channel.
Used to receive CM events (address resolved, connected, etc.).
Implementations§
Source§impl EventChannel
impl EventChannel
Sourcepub fn try_get_event(&self) -> Result<CmEvent>
pub fn try_get_event(&self) -> Result<CmEvent>
Non-blocking get_event. Returns Error::WouldBlock if no event is pending.
Sourcepub fn set_nonblocking(&self) -> Result<()>
pub fn set_nonblocking(&self) -> Result<()>
Set the event channel fd to non-blocking mode.
Sourcepub fn as_raw(&self) -> *mut rdma_event_channel
pub fn as_raw(&self) -> *mut rdma_event_channel
Raw pointer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventChannel
impl RefUnwindSafe for EventChannel
impl Unpin for EventChannel
impl UnsafeUnpin for EventChannel
impl UnwindSafe for EventChannel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more