pub struct UdpConfig {
pub name: String,
pub listen_ip: Option<String>,
pub listen_port: Option<u16>,
pub forward_ip: Option<String>,
pub forward_port: Option<u16>,
pub interface_id: InterfaceId,
}Expand description
Configuration for a UDP interface.
Fields§
§name: String§listen_ip: Option<String>§listen_port: Option<u16>§forward_ip: Option<String>§forward_port: Option<u16>§interface_id: InterfaceIdTrait Implementations§
Auto Trait Implementations§
impl Freeze for UdpConfig
impl RefUnwindSafe for UdpConfig
impl Send for UdpConfig
impl Sync for UdpConfig
impl Unpin for UdpConfig
impl UnwindSafe for UdpConfig
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