Skip to content

Commit

Permalink
📝 restrict some struct to crate level
Browse files Browse the repository at this point in the history
  • Loading branch information
Xudong-Huang committed Dec 24, 2024
1 parent 18bee79 commit 2dae05f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/io/sys/unix/epoll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use smallvec::SmallVec;

pub type SysEvent = EpollEvent;

pub(crate) struct SingleSelector {
struct SingleSelector {
epoll: Epoll,
evfd: EventFd,
#[cfg(feature = "io_timeout")]
Expand Down
2 changes: 1 addition & 1 deletion src/io/sys/unix/kqueue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ macro_rules! syscall {
}};
}

pub(crate) struct SingleSelector {
struct SingleSelector {
kqfd: OwnedFd,
#[cfg(feature = "io_timeout")]
timer_list: TimerList,
Expand Down
2 changes: 1 addition & 1 deletion src/io/sys/windows/iocp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl SingleSelector {
}
}

pub struct Selector {
pub(crate) struct Selector {
// 128 should be fine for max io threads
vec: SmallVec<[SingleSelector; 128]>,
}
Expand Down
2 changes: 1 addition & 1 deletion src/io/sys/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use crate::likely::likely;
use crate::scheduler::get_scheduler;
use crate::yield_now::get_co_para;

pub use self::iocp::{EventData, Selector, SysEvent};
pub(crate) use self::iocp::{EventData, Selector, SysEvent};

// each file associated data, windows already have OVERLAPPED
// fake windows interface
Expand Down

0 comments on commit 2dae05f

Please sign in to comment.