mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-21 10:43:25 +00:00
Fix visibility warnings on non-Unix platforms
This commit is contained in:
@@ -99,7 +99,7 @@ impl Default for UdpSocketState {
|
||||
}
|
||||
|
||||
/// Returns the platforms UDP socket capabilities
|
||||
pub fn udp_state() -> super::UdpState {
|
||||
pub(crate) fn udp_state() -> super::UdpState {
|
||||
super::UdpState {
|
||||
max_gso_segments: std::sync::atomic::AtomicUsize::new(1),
|
||||
gro_segments: 1,
|
||||
@@ -111,4 +111,4 @@ pub(crate) fn may_fragment() -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
pub const BATCH_SIZE: usize = 1;
|
||||
pub(crate) const BATCH_SIZE: usize = 1;
|
||||
|
||||
@@ -146,14 +146,14 @@ impl Default for UdpSocketState {
|
||||
}
|
||||
|
||||
/// Returns the platforms UDP socket capabilities
|
||||
pub fn udp_state() -> super::UdpState {
|
||||
pub(crate) fn udp_state() -> super::UdpState {
|
||||
super::UdpState {
|
||||
max_gso_segments: std::sync::atomic::AtomicUsize::new(1),
|
||||
gro_segments: 1,
|
||||
}
|
||||
}
|
||||
|
||||
pub const BATCH_SIZE: usize = 1;
|
||||
pub(crate) const BATCH_SIZE: usize = 1;
|
||||
|
||||
#[inline]
|
||||
pub(crate) fn may_fragment() -> bool {
|
||||
|
||||
Reference in New Issue
Block a user