pub enum PRecvFlag {
Block,
NonBlock,
}Expand description
describe the receiving flag of the Socket
Block: Normal usage of the Socket. Blocking until a message comesNonBlock: The Socket recv does not stop the execution of the program
Variants§
Block
Normal usage of the Socket. Blocking until a message comes
NonBlock
The Socket recv does not stop the execution of the program
Trait Implementations§
impl Copy for PRecvFlag
impl StructuralPartialEq for PRecvFlag
Auto Trait Implementations§
impl Freeze for PRecvFlag
impl RefUnwindSafe for PRecvFlag
impl Send for PRecvFlag
impl Sync for PRecvFlag
impl Unpin for PRecvFlag
impl UnsafeUnpin for PRecvFlag
impl UnwindSafe for PRecvFlag
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