@@ -40,10 +40,6 @@ pub(super) enum Kind {
40
40
/// Error creating a TcpListener.
41
41
#[ cfg( all( feature = "tcp" , feature = "server" ) ) ]
42
42
Listen ,
43
- /// Error accepting on an Incoming stream.
44
- #[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
45
- #[ cfg( feature = "server" ) ]
46
- Accept ,
47
43
/// User took too long to send headers
48
44
#[ cfg( all( feature = "http1" , feature = "server" , feature = "runtime" ) ) ]
49
45
HeaderTimeout ,
@@ -96,10 +92,6 @@ pub(super) enum User {
96
92
Body ,
97
93
/// The user aborted writing of the outgoing body.
98
94
BodyWriteAborted ,
99
- /// Error calling user's MakeService.
100
- #[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
101
- #[ cfg( feature = "server" ) ]
102
- MakeService ,
103
95
/// Error from future of user's Service.
104
96
#[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
105
97
Service ,
@@ -278,12 +270,6 @@ impl Error {
278
270
Error :: new ( Kind :: Listen ) . with ( cause)
279
271
}
280
272
281
- #[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
282
- #[ cfg( feature = "server" ) ]
283
- pub ( super ) fn new_accept < E : Into < Cause > > ( cause : E ) -> Error {
284
- Error :: new ( Kind :: Accept ) . with ( cause)
285
- }
286
-
287
273
#[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
288
274
#[ cfg( feature = "client" ) ]
289
275
pub ( super ) fn new_connect < E : Into < Cause > > ( cause : E ) -> Error {
@@ -356,12 +342,6 @@ impl Error {
356
342
Error :: new_user ( User :: ManualUpgrade )
357
343
}
358
344
359
- #[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
360
- #[ cfg( feature = "server" ) ]
361
- pub ( super ) fn new_user_make_service < E : Into < Cause > > ( cause : E ) -> Error {
362
- Error :: new_user ( User :: MakeService ) . with ( cause)
363
- }
364
-
365
345
#[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
366
346
pub ( super ) fn new_user_service < E : Into < Cause > > ( cause : E ) -> Error {
367
347
Error :: new_user ( User :: Service ) . with ( cause)
@@ -435,9 +415,6 @@ impl Error {
435
415
Kind :: Canceled => "operation was canceled" ,
436
416
#[ cfg( all( feature = "server" , feature = "tcp" ) ) ]
437
417
Kind :: Listen => "error creating server listener" ,
438
- #[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
439
- #[ cfg( feature = "server" ) ]
440
- Kind :: Accept => "error accepting connection" ,
441
418
#[ cfg( all( feature = "http1" , feature = "server" , feature = "runtime" ) ) ]
442
419
Kind :: HeaderTimeout => "read header from client timeout" ,
443
420
#[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
@@ -455,9 +432,6 @@ impl Error {
455
432
Kind :: User ( User :: Body ) => "error from user's HttpBody stream" ,
456
433
Kind :: User ( User :: BodyWriteAborted ) => "user body write aborted" ,
457
434
#[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
458
- #[ cfg( feature = "server" ) ]
459
- Kind :: User ( User :: MakeService ) => "error from user's MakeService" ,
460
- #[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
461
435
Kind :: User ( User :: Service ) => "error from user's Service" ,
462
436
#[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
463
437
#[ cfg( feature = "server" ) ]
0 commit comments