Enum webrtc_sctp::error::SctpError [−][src]
pub enum SctpError {
Io(Error),
ReadUnderrun,
InvalidPacket,
BadChecksum,
BadState,
ExpectedBeginningFragment,
UnexpectedBeginningFragment,
UnexpectedSSN,
SendQueueFull,
CommandQueueFull,
Closed,
Timeout,
}The errors that may be returned by SCTP functions are categorized into these enum variants.
Variants
Io(Error)ReadUnderrunInvalidPacketBadChecksumBadStateExpectedBeginningFragmentUnexpectedBeginningFragmentUnexpectedSSNSendQueueFullCommandQueueFullClosedTimeout
Trait Implementations
impl Debug for SctpError[src]
impl Debug for SctpErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for SctpError[src]
impl Display for SctpErrorimpl Error for SctpError[src]
impl Error for SctpErrorfn description(&self) -> &str[src]
fn description(&self) -> &strProvide terse descriptions of the errors.
fn cause(&self) -> Option<&Error>[src]
fn cause(&self) -> Option<&Error>For errors which encapsulate another error, allow the caller to fetch the contained error.
impl From<Error> for SctpError[src]
impl From<Error> for SctpError