Lines Matching refs:error

9     #[error("raw is too small for a SCTP chunk")]
11 #[error("not enough data left in SCTP packet to satisfy requested length")]
13 #[error("chunk PADDING is non-zero at offset")]
15 #[error("chunk has invalid length")]
18 #[error("ChunkType is not of type ABORT")]
20 #[error("failed build Abort Chunk")]
22 #[error("ChunkType is not of type COOKIEACK")]
24 #[error("ChunkType is not of type COOKIEECHO")]
26 #[error("ChunkType is not of type ctError")]
28 #[error("failed build Error Chunk")]
30 #[error("failed to marshal stream")]
32 #[error("chunk too short")]
34 #[error("ChunkType is not of type ForwardTsn")]
36 #[error("ChunkType is not of type HEARTBEAT")]
38 #[error("ChunkType is not of type HEARTBEATACK")]
40 #[error("heartbeat is not long enough to contain Heartbeat Info")]
42 #[error("failed to parse param type")]
44 #[error("heartbeat should only have HEARTBEAT param")]
46 #[error("failed unmarshalling param in Heartbeat Chunk")]
48 #[error("unimplemented")]
50 #[error("heartbeat Ack must have one param")]
52 #[error("heartbeat Ack must have one param, and it should be a HeartbeatInfo")]
54 #[error("unable to marshal parameter for Heartbeat Ack")]
57 #[error("raw is too small for error cause")]
60 #[error("unhandled ParamType `{typ}`")]
63 #[error("unexpected ParamType")]
66 #[error("param header too short")]
68 #[error("param self reported length is shorter than header length")]
70 #[error("param self reported length is longer than header length")]
72 #[error("failed to parse param type")]
75 #[error("packet to short")]
77 #[error("outgoing SSN reset request parameter too short")]
79 #[error("reconfig response parameter too short")]
81 #[error("invalid algorithm type")]
84 #[error("failed to parse param type")]
86 #[error("failed unmarshalling param in Init Chunk")]
88 #[error("unable to marshal parameter for INIT/INITACK")]
91 #[error("ChunkType is not of type INIT")]
93 #[error("chunk Value isn't long enough for mandatory parameters exp")]
95 #[error("ChunkType of type INIT flags must be all 0")]
97 #[error("failed to unmarshal INIT body")]
99 #[error("failed marshaling INIT common data")]
101 #[error("ChunkType of type INIT ACK InitiateTag must not be 0")]
103 #[error("INIT ACK inbound stream request must be > 0")]
105 #[error("INIT ACK outbound stream request must be > 0")]
107 #[error("INIT ACK Advertised Receiver Window Credit (a_rwnd) must be >= 1500")]
110 #[error("packet is smaller than the header size")]
112 #[error("ChunkType is not of type PayloadData")]
114 #[error("ChunkType is not of type Reconfig")]
116 #[error("ChunkReconfig has invalid ParamA")]
119 #[error("failed to parse param type")]
121 #[error("unable to marshal parameter A for reconfig")]
123 #[error("unable to marshal parameter B for reconfig")]
126 #[error("ChunkType is not of type SACK")]
128 #[error("SACK Chunk size is not large enough to contain header")]
131 #[error("invalid chunk size")]
133 #[error("ChunkType is not of type SHUTDOWN")]
136 #[error("ChunkType is not of type SHUTDOWN-ACK")]
138 #[error("ChunkType is not of type SHUTDOWN-COMPLETE")]
141 #[error("raw is smaller than the minimum length for a SCTP packet")]
143 #[error("unable to parse SCTP chunk, not enough data for complete header")]
145 #[error("failed to unmarshal, contains unknown chunk type")]
147 #[error("checksum mismatch theirs")]
150 #[error("unexpected chunk popped (unordered)")]
152 #[error("unexpected chunk popped (ordered)")]
154 #[error("unexpected q state (should've been selected)")]
156 #[error("try again")]
159 #[error("abort chunk, with following errors")]
161 #[error("shutdown called in non-Established state")]
163 #[error("association closed before connecting")]
165 #[error("association init failed")]
167 #[error("association handshake closed")]
169 #[error("silently discard")]
171 #[error("the init not stored to send")]
173 #[error("cookieEcho not stored to send")]
175 #[error("sctp packet must not have a source port of 0")]
177 #[error("sctp packet must not have a destination port of 0")]
179 #[error("init chunk must not be bundled with any other chunk")]
181 #[error("init chunk expects a verification tag of 0 on the packet when out-of-the-blue")]
183 #[error("todo: handle Init when in state")]
185 #[error("no cookie in InitAck")]
187 #[error("there already exists a stream with identifier")]
189 #[error("Failed to create a stream with identifier")]
191 #[error("unable to be popped from inflight queue TSN")]
193 #[error("requested non-existent TSN")]
195 #[error("sending reset packet in non-Established state")]
197 #[error("unexpected parameter type")]
199 #[error("sending payload data in non-Established state")]
201 #[error("unhandled chunk type")]
203 #[error("handshake failed (INIT ACK)")]
205 #[error("handshake failed (COOKIE ECHO)")]
208 #[error("outbound packet larger than maximum message size")]
210 #[error("Stream closed")]
212 #[error("Short buffer to be filled")]
214 #[error("Io EOF")]
216 #[error("Invalid SystemTime")]
218 #[error("Net Conn read error")]
220 #[error("Max Data Channel ID")]
223 #[error("{0}")]
228 fn from(error: Error) -> Self { in from()
229 match error { in from()