Skip to content

Commit 68c279a

Browse files
committed
Reexport BoxedHandler and BoxedTarget
1 parent a8eeeb3 commit 68c279a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/async_target.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ use tokio::time::{self};
2424
pub type OldStatus = Status;
2525

2626
/// Type for a boxed trait object implementing [Target]
27-
type BoxedTarget<'a> = Box<dyn Target + Send + 'a>;
27+
pub type BoxedTarget<'a> = Box<dyn Target + Send + 'a>;
2828

2929
/// Type containing a boxed trait object implementing [FnMut] that is called with each async check.
30-
type BoxedHandler<'a> = Box<dyn FnMut(&dyn Target, Status, OldStatus, Option<CheckTargetError>) + Send + 'a>;
30+
pub type BoxedHandler<'a> = Box<dyn FnMut(&dyn Target, Status, OldStatus, Option<CheckTargetError>) + Send + 'a>;
3131

3232
/// Struct storing all data used during asynchronous execution.
3333
///

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ pub use resolve_policy::ResolvePolicy;
2727
pub use target::{Fqhn, IcmpTarget, Port, Status, Target, TcpTarget};
2828

2929
#[cfg(feature = "async")]
30-
pub use async_target::{AsyncTarget, AsyncTargetExecutor, OldStatus};
30+
pub use async_target::{AsyncTarget, AsyncTargetExecutor, BoxedHandler, BoxedTarget, OldStatus};

0 commit comments

Comments
 (0)