Enum kcp::Error [−][src]
pub enum Error { ConvInconsistent(u32, u32), InvalidMtu(usize), InvalidSegmentSize(usize), InvalidSegmentDataSize(usize, usize), IoError(Error), NeedUpdate, RecvQueueEmpty, ExpectingFragment, UnsupportCmd(u8), UserBufTooBig, UserBufTooSmall, }
KCP protocol errors
Variants
ConvInconsistent(u32, u32)
InvalidMtu(usize)
InvalidSegmentSize(usize)
InvalidSegmentDataSize(usize, usize)
IoError(Error)
NeedUpdate
RecvQueueEmpty
ExpectingFragment
UnsupportCmd(u8)
UserBufTooBig
UserBufTooSmall
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
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 StdError for Error
[src]
impl StdError for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&StdError>
[src]
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error