Enum laminar::ErrorKind [−][src]
pub enum ErrorKind { DecodingError(DecodingErrorKind), FragmentError(FragmentErrorKind), PacketError(PacketErrorKind), IOError(Error), ReceivedDataToShort, ProtocolVersionMismatch, SendError(SendError<SocketEvent>), CouldNotReadHeader(String), }
Enum with all possible network errors that could occur.
Variants
Error in decoding the packet
Error relating to receiving or parsing a fragment
Error relating to receiving or parsing a packet
IOError(Error)
Wrapper around a std io::Error
Did not receive enough data
Protocol versions did not match
SendError(SendError<SocketEvent>)
Could not send on SendChannel
.
CouldNotReadHeader(String)
Expected header but could not be read from buffer.
Trait Implementations
impl Error for ErrorKind
[src]
impl Error for ErrorKind
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<SendError<SocketEvent>> for ErrorKind
[src]
impl From<SendError<SocketEvent>> for ErrorKind
[src]fn from(inner: SendError<SocketEvent>) -> Self
[src]
fn from(inner: SendError<SocketEvent>) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,