diff --git a/tokio-rustls/src/lib.rs b/tokio-rustls/src/lib.rs index eedf463..1e3caf7 100644 --- a/tokio-rustls/src/lib.rs +++ b/tokio-rustls/src/lib.rs @@ -161,22 +161,22 @@ pub struct Connect(MidHandshake>); pub struct Accept(MidHandshake>); /// Like [Connect], but returns `IO` on failure. -pub struct FailableConnect(MidHandshake>); +pub struct FallibleConnect(MidHandshake>); /// Like [Accept], but returns `IO` on failure. -pub struct FailableAccept(MidHandshake>); +pub struct FallibleAccept(MidHandshake>); impl Connect { #[inline] - pub fn into_failable(self) -> FailableConnect { - FailableConnect(self.0) + pub fn into_fallible(self) -> FallibleConnect { + FallibleConnect(self.0) } } impl Accept { #[inline] - pub fn into_failable(self) -> FailableAccept { - FailableAccept(self.0) + pub fn into_fallible(self) -> FallibleAccept { + FallibleAccept(self.0) } } @@ -198,7 +198,7 @@ impl Future for Accept { } } -impl Future for FailableConnect { +impl Future for FallibleConnect { type Output = Result, (io::Error, IO)>; #[inline] @@ -207,7 +207,7 @@ impl Future for FailableConnect { } } -impl Future for FailableAccept { +impl Future for FallibleAccept { type Output = Result, (io::Error, IO)>; #[inline]