Skip to main content

Crate rustyphoenixsocketmock

Crate rustyphoenixsocketmock 

Source

Structs§

PEmptySocketBackend
Dummy empty backend
PGenericSocketManager
Socket manager for PGenericSocket
PMockParam
Extra parameters of mock socket
PMockSocket
The PMockSocket defines a mock backend which implements the AbstractClockBackend trait and is able to play, record and replay a set of time
PMockSocketBackend
Dummy empty backend
PSocketParam
Parameters to create a socket

Enums§

PRecvFlag
describe the receiving flag of the Socket
PRecvStatus
describe the result of the recv
PSendFlag
Describe the sending flag of the Socket
PSendStatus
Describe the result of the send
PSocketMode
The Socket mode determine how the PGenericSocket will behave :

Traits§

AbstractSocket
Abtract implementation of a socket. It can send and recieved arbitrary data and can also be close and tell if it is connected to and other socket.
AbstractSocketBackend
Abtract implementation of a socket backend. It defines what is a socket type, the type of the extra parameters to be used to initialise its sockets and also what is the type of message to be used with this particular bakend.
AbstractSocketMock
Abtract implementation of a socket mock