pub enum SctpError {
Proto(ProtoError),
WriteBeforeEstablished,
DcepOpenTooSmall,
DcepIncorrectMessageType,
DcepBadUtf8,
}
Expand description
Errors from the SCTP subsystem.
Variants§
Proto(ProtoError)
Some protocol error as wrapped from the sctp_proto crate.
WriteBeforeEstablished
Stream was not ready and we tried to write.
DcepOpenTooSmall
The initial DCEP is not valid.
DcepIncorrectMessageType
The initial DCEP is not the correct message type.
DcepBadUtf8
The initial DCEP cant be read as utf-8.
Trait Implementations§
source§impl Error for SctpError
impl Error for SctpError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for SctpError
impl From<Error> for SctpError
source§fn from(source: ProtoError) -> Self
fn from(source: ProtoError) -> Self
Converts to this type from the input type.