mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Ability to (de)serialize NetworkConfigBuilder (#897)
This commit is contained in:
@ -23,6 +23,7 @@ tracing = "0.1"
|
||||
pin-project-lite = "0.2.9"
|
||||
tokio = { version = "1", features = ["time"] }
|
||||
thiserror = "1.0"
|
||||
serde_with = "2.1.0"
|
||||
|
||||
[dev-dependencies]
|
||||
reth-tracing = { path = "../../tracing" }
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
|
||||
use igd::aio::search_gateway;
|
||||
use pin_project_lite::pin_project;
|
||||
use serde_with::{DeserializeFromStr, SerializeDisplay};
|
||||
use std::{
|
||||
fmt,
|
||||
future::{poll_fn, Future},
|
||||
@ -21,7 +22,9 @@ use std::{
|
||||
use tracing::warn;
|
||||
|
||||
/// All builtin resolvers.
|
||||
#[derive(Debug, Clone, Copy, Eq, PartialEq, Default, Hash)]
|
||||
#[derive(
|
||||
Debug, Clone, Copy, Eq, PartialEq, Default, Hash, SerializeDisplay, DeserializeFromStr,
|
||||
)]
|
||||
pub enum NatResolver {
|
||||
/// Resolve with any available resolver.
|
||||
#[default]
|
||||
|
||||
Reference in New Issue
Block a user