pub struct UdpConfig { /* private fields */ }Expand description
MAVLink address for a UDP server client or broadcast connection
Implementations§
Source§impl UdpConfig
impl UdpConfig
Sourcepub fn new(address: String, mode: UdpMode) -> UdpConfig
pub fn new(address: String, mode: UdpMode) -> UdpConfig
Creates a UDP connection address.
The type of connection depends on the UdpMode
Sourcepub fn read_timeout(self, timeout: Duration) -> UdpConfig
pub fn read_timeout(self, timeout: Duration) -> UdpConfig
Sets the read timeout on the UDP socket.
When set, recv() and recv_raw() will return an error after the
specified duration instead of blocking indefinitely. This is useful
for implementing graceful shutdown.
Trait Implementations§
Source§impl AsyncConnectable for UdpConfig
impl AsyncConnectable for UdpConfig
Source§impl Connectable for UdpConfig
impl Connectable for UdpConfig
Source§impl From<UdpConfig> for ConnectionAddress
Available on crate feature udp only.
impl From<UdpConfig> for ConnectionAddress
Available on crate feature
udp only.Source§fn from(value: UdpConfig) -> ConnectionAddress
fn from(value: UdpConfig) -> ConnectionAddress
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UdpConfig
impl RefUnwindSafe for UdpConfig
impl Send for UdpConfig
impl Sync for UdpConfig
impl Unpin for UdpConfig
impl UnsafeUnpin 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