Enum socket_collection::SocketError [−]
pub enum SocketError { Io(Error), UninitialisedSocket, PayloadSizeProhibitive, Serialisation(SerialisationError), Timer(TimerError), ZeroByteRead, }
Common module specific error
Variants
Io(Error)
IO error
UninitialisedSocket
Socket is uninitialised and invalid for any operation
PayloadSizeProhibitive
Size of a message to send or about to be read is too large
Serialisation(SerialisationError)
Serialisation error
Timer(TimerError)
Timer error
ZeroByteRead
A zero byte socket read - means EOF
Trait Implementations
impl Debug for SocketError
[src]
impl Debug for SocketError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for SocketError
impl Display for SocketError
impl Error for SocketError
impl Error for SocketError
fn description(&self) -> &str
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for SocketError
impl From<Error> for SocketError
fn from(e: Error) -> SocketError
fn from(e: Error) -> SocketError
Performs the conversion.
impl From<SerialisationError> for SocketError
impl From<SerialisationError> for SocketError
fn from(e: SerialisationError) -> SocketError
fn from(e: SerialisationError) -> SocketError
Performs the conversion.
impl From<TimerError> for SocketError
impl From<TimerError> for SocketError
fn from(e: TimerError) -> SocketError
fn from(e: TimerError) -> SocketError
Performs the conversion.
Auto Trait Implementations
impl Send for SocketError
impl Send for SocketError
impl Sync for SocketError
impl Sync for SocketError