#[repr(u32)]pub enum ucp_ep_close_mode {
UCP_EP_CLOSE_MODE_FORCE = 0,
UCP_EP_CLOSE_MODE_FLUSH = 1,
}Expand description
@ingroup UCP_ENDPOINT @brief Close UCP endpoint modes.
The enumeration is used to specify the behavior of @ref ucp_ep_close_nb.
Variants§
UCP_EP_CLOSE_MODE_FORCE = 0
< @ref ucp_ep_close_nb releases the endpoint without any confirmation from the peer. All outstanding requests will be completed with @ref UCS_ERR_CANCELED error. @note This mode may cause transport level errors on remote side, so it requires set @ref UCP_ERR_HANDLING_MODE_PEER for all endpoints created on both (local and remote) sides to avoid undefined behavior.
UCP_EP_CLOSE_MODE_FLUSH = 1
< @ref ucp_ep_close_nb schedules flushes on all outstanding operations.
Trait Implementations§
Source§impl Clone for ucp_ep_close_mode
impl Clone for ucp_ep_close_mode
Source§fn clone(&self) -> ucp_ep_close_mode
fn clone(&self) -> ucp_ep_close_mode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ucp_ep_close_mode
impl Debug for ucp_ep_close_mode
Source§impl Hash for ucp_ep_close_mode
impl Hash for ucp_ep_close_mode
Source§impl PartialEq for ucp_ep_close_mode
impl PartialEq for ucp_ep_close_mode
impl Copy for ucp_ep_close_mode
impl Eq for ucp_ep_close_mode
impl StructuralPartialEq for ucp_ep_close_mode
Auto Trait Implementations§
impl Freeze for ucp_ep_close_mode
impl RefUnwindSafe for ucp_ep_close_mode
impl Send for ucp_ep_close_mode
impl Sync for ucp_ep_close_mode
impl Unpin for ucp_ep_close_mode
impl UnwindSafe for ucp_ep_close_mode
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