pub enum PRecvStatus {
Ok,
NoMessageRecieved,
InvalidMessage,
SocketNotAvailable,
NoRouteToSender,
SignalInteruption,
BrokenBackend,
BrokenSocket,
CannotDeserializeData,
}Expand description
describe the result of the recv
Ok: Everything is OK and a message was recievedNoMessageRecieved: No message was recievedInvalidMessage: The recieved message is invalidSocketNotAvailable: The socket is not availableNoRouteToSender: The sender cannot be reached, maybe caused by network problemSignalInteruption: The socket cought a signal. This value exist because zeromq socket tends to take it very badly when it recieves a signal. Thus, this is quite anoying and we have to take that int accountBrokenBackend: The backend is broken. Sounds not obvious but this could happened again in zeromq.BrokenSocket: The socket is broken and cannot longer be usedCannotDeserializeData: The data cannot be deserialize from the message. Could happened from the DataStream trait maybe with wrongly formated data.
Variants§
Ok
Everything is OK and a message was recieved
NoMessageRecieved
No message was recieved
InvalidMessage
The recieved message is invalid
SocketNotAvailable
The socket is not available
NoRouteToSender
The sender cannot be reached, maybe caused by network problem
SignalInteruption
The socket cought a signal. This value exist because zeromq socket tends to take it very badly when it recieves a signal. Thus, this is quite anoying and we have to take that int account
BrokenBackend
The backend is broken
BrokenSocket
The socket is broken and cannot longer be used
CannotDeserializeData
The data cannot be deserialize from the message
Trait Implementations§
Source§impl Clone for PRecvStatus
impl Clone for PRecvStatus
Source§fn clone(&self) -> PRecvStatus
fn clone(&self) -> PRecvStatus
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 PRecvStatus
impl Debug for PRecvStatus
Source§impl PartialEq for PRecvStatus
impl PartialEq for PRecvStatus
impl Copy for PRecvStatus
impl StructuralPartialEq for PRecvStatus
Auto Trait Implementations§
impl Freeze for PRecvStatus
impl RefUnwindSafe for PRecvStatus
impl Send for PRecvStatus
impl Sync for PRecvStatus
impl Unpin for PRecvStatus
impl UnsafeUnpin for PRecvStatus
impl UnwindSafe for PRecvStatus
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