pub enum PSocketMode {
NoMock,
Mock,
MockRecord,
}Expand description
The Socket mode determine how the PGenericSocket will behave :
NoMock: Normal usage of the socket with the official backendMock: Mock backend is used and replace the official backend behaviourMockRecord: Mock backend is spying what the official backend is doing, so it can be replayed after
Variants§
NoMock
Normal usage of the socket with the official backend
Mock
Mock backend is used and replace the official backend behaviour
MockRecord
Mock backend is spying what the official backend is doing, so it can be replayed after
Trait Implementations§
Source§impl Clone for PSocketMode
impl Clone for PSocketMode
Source§fn clone(&self) -> PSocketMode
fn clone(&self) -> PSocketMode
Returns a duplicate 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 PSocketMode
impl Debug for PSocketMode
Source§impl PartialEq for PSocketMode
impl PartialEq for PSocketMode
impl Copy for PSocketMode
impl StructuralPartialEq for PSocketMode
Auto Trait Implementations§
impl Freeze for PSocketMode
impl RefUnwindSafe for PSocketMode
impl Send for PSocketMode
impl Sync for PSocketMode
impl Unpin for PSocketMode
impl UnsafeUnpin for PSocketMode
impl UnwindSafe for PSocketMode
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