// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines error types for packet handling inside connections use s2n_quic_core::crypto::CryptoError; /// Errors that can occur during packet reception #[derive(Copy, Clone, Debug, PartialEq, Eq)] pub enum PacketHandlingError { /// A crypto error occurred CryptoError(CryptoError), } impl From for PacketHandlingError { fn from(error: CryptoError) -> Self { Self::CryptoError(error) } }