Lines Matching refs:Error
1 use thiserror::Error;
9 pub type Result<T> = std::result::Result<T, Error>;
11 #[derive(Debug, Error, PartialEq)]
13 pub enum Error { enum
155 Util(#[from] util::Error),
159 Sec1(#[source] sec1::Error),
178 #[derive(Debug, Error)]
180 pub struct IoError(#[from] pub io::Error);
189 impl From<io::Error> for Error { implementation
190 fn from(e: io::Error) -> Self { in from()
191 Error::Io(IoError(e)) in from()
195 impl From<sec1::Error> for Error { implementation
196 fn from(e: sec1::Error) -> Self { in from()
197 Error::Sec1(e) in from()
201 #[derive(Debug, Error)]
203 pub struct P256Error(#[source] p256::elliptic_curve::Error);
211 impl From<p256::elliptic_curve::Error> for Error { implementation
212 fn from(e: p256::elliptic_curve::Error) -> Self { in from()
213 Error::P256(P256Error(e)) in from()
217 impl From<block_modes::InvalidKeyIvLength> for Error { implementation
219 Error::Other(e.to_string()) in from()
222 impl From<block_modes::BlockModeError> for Error { implementation
224 Error::Other(e.to_string()) in from()
229 impl<T> From<MpscSendError<T>> for Error { implementation
231 Error::MpscSend(e.to_string()) in from()