pub struct UdpConnectionConfig {
pub addr: SocketAddr,
pub max_queue_size: Option<usize>,
}
Fields§
§addr: SocketAddr
§max_queue_size: Option<usize>
Implementations§
Source§impl UdpConnectionConfig
impl UdpConnectionConfig
Sourcepub fn unbounded(addr: SocketAddr) -> UdpConnectionConfig
pub fn unbounded(addr: SocketAddr) -> UdpConnectionConfig
Shorthand for creating unbounded connections. Unbounded connections will never drop a recieved packet. However, because it will not drop packets, malicious actors can flood the connection.
Sourcepub fn bounded(addr: SocketAddr, limit: usize) -> UdpConnectionConfig
pub fn bounded(addr: SocketAddr, limit: usize) -> UdpConnectionConfig
Shorthand for creating bounded connections. Bounded connections will drop a recieved packet if the recieve queue is full.
Auto Trait Implementations§
impl Freeze for UdpConnectionConfig
impl RefUnwindSafe for UdpConnectionConfig
impl Send for UdpConnectionConfig
impl Sync for UdpConnectionConfig
impl Unpin for UdpConnectionConfig
impl UnwindSafe for UdpConnectionConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more