pub enum ServerMockerInstruction {
SendMessage(BinaryMessage),
ReceiveMessage,
StopExchange,
}
Expand description
Type of network instruction executed by the server mocker.
Variants
SendMessage(BinaryMessage)
Send given message to the client
ReceiveMessage
Wait for a message to be received. The message could be recovered with TcpServerMocker::pop_received_message()
StopExchange
Stop the exchange with the client, close the connection
Trait Implementations
sourceimpl Clone for ServerMockerInstruction
impl Clone for ServerMockerInstruction
sourcefn clone(&self) -> ServerMockerInstruction
fn clone(&self) -> ServerMockerInstruction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ServerMockerInstruction
impl Debug for ServerMockerInstruction
sourceimpl PartialEq<ServerMockerInstruction> for ServerMockerInstruction
impl PartialEq<ServerMockerInstruction> for ServerMockerInstruction
sourcefn eq(&self, other: &ServerMockerInstruction) -> bool
fn eq(&self, other: &ServerMockerInstruction) -> bool
impl StructuralPartialEq for ServerMockerInstruction
Auto Trait Implementations
impl RefUnwindSafe for ServerMockerInstruction
impl Send for ServerMockerInstruction
impl Sync for ServerMockerInstruction
impl Unpin for ServerMockerInstruction
impl UnwindSafe for ServerMockerInstruction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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