pub enum PSendStatus {
Ok,
SocketNotAvailable,
NoRouteToReciever,
SignalInteruption,
BrokenBackend,
BrokenSocket,
CannotSerializeData,
}Expand description
Describe the result of the send
Ok: Everything is OKSocketNotAvailable: The socket is not availableNoRouteToReciever: The reciever cannot be reached, maybe caused by network problemSignalInteruption: The socket cought a signalBrokenBackend: The backend is brokenBrokenSocket: The socket is broken and cannot longer be usedCannotSerializeData: The data cannot be serialized in the message. Could happened from the DataStream if some types do not implement well the DataStream trait.
Variants§
Ok
Everything is OK
SocketNotAvailable
The socket is not available
NoRouteToReciever
The reciever 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
CannotSerializeData
The data cannot be serialized in the message
Trait Implementations§
Source§impl Clone for PSendStatus
impl Clone for PSendStatus
Source§fn clone(&self) -> PSendStatus
fn clone(&self) -> PSendStatus
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 PSendStatus
impl Debug for PSendStatus
Source§impl PartialEq for PSendStatus
impl PartialEq for PSendStatus
impl Copy for PSendStatus
impl StructuralPartialEq for PSendStatus
Auto Trait Implementations§
impl Freeze for PSendStatus
impl RefUnwindSafe for PSendStatus
impl Send for PSendStatus
impl Sync for PSendStatus
impl Unpin for PSendStatus
impl UnsafeUnpin for PSendStatus
impl UnwindSafe for PSendStatus
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