refine VirtualDns

This commit is contained in:
ssrlive 2023-08-06 13:48:56 +08:00
parent 5ce2e85919
commit 30d7217374
4 changed files with 63 additions and 70 deletions

View file

@ -33,6 +33,12 @@ pub enum Error {
#[error("std::str::Utf8Error {0:?}")]
Utf8(#[from] std::str::Utf8Error),
#[error("TryFromSliceError {0:?}")]
TryFromSlice(#[from] std::array::TryFromSliceError),
#[error("ProtoError {0:?}")]
ProtoError(#[from] trust_dns_proto::error::ProtoError),
#[cfg(target_os = "android")]
#[error("jni::errors::Error {0:?}")]
Jni(#[from] jni::errors::Error),