pub enum ResetError {
ConnectionLost(ConnectionError),
ZeroRttRejected,
}展开描述
在等待流被重置时产生的错误
变体§
ConnectionLost(ConnectionError)
连接已丢失
ZeroRttRejected
该流为 0-RTT 流,但服务器拒绝了它
仅对客户端的 0-RTT 流可能发生,可通过 Connecting::into_0rtt() 打开 0-RTT 流。
trait 实现§
源代码§impl Clone for ResetError
impl Clone for ResetError
源代码§fn clone(&self) -> ResetError
fn clone(&self) -> ResetError
返回值的副本。 更多信息
1.0.0 · 源代码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. 更多信息源代码§impl Display for ResetError
impl Display for ResetError
源代码§impl Error for ResetError
impl Error for ResetError
源代码§impl From<ConnectionError> for ResetError
impl From<ConnectionError> for ResetError
源代码§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
从输入类型转换为此类型。
源代码§impl From<ResetError> for Error
impl From<ResetError> for Error
源代码§fn from(x: ResetError) -> Self
fn from(x: ResetError) -> Self
从输入类型转换为此类型。
源代码§impl From<ResetError> for ReadError
impl From<ResetError> for ReadError
源代码§fn from(e: ResetError) -> Self
fn from(e: ResetError) -> Self
从输入类型转换为此类型。
源代码§impl PartialEq for ResetError
impl PartialEq for ResetError
impl Eq for ResetError
impl StructuralPartialEq for ResetError
自动 trait 实现§
impl !Freeze for ResetError
impl RefUnwindSafe for ResetError
impl Send for ResetError
impl Sync for ResetError
impl Unpin for ResetError
impl UnsafeUnpin for ResetError
impl UnwindSafe for ResetError
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息