pub enum ConnectionAddress {
Tcp(TcpConnectable),
Udp(UdpConnectable),
Serial(SerialConnectable),
File(FileConnectable),
}
Available on crate features
std
or tokio-1
only.Expand description
A parsed MAVLink connection address
Variants§
Tcp(TcpConnectable)
Available on crate feature
tcp
only.TCP client or server address
Udp(UdpConnectable)
Available on crate feature
udp
only.UDP client, server or broadcast address
Serial(SerialConnectable)
Available on crate feature
direct-serial
only.Serial port address
File(FileConnectable)
File input address
Implementations§
Source§impl ConnectionAddress
impl ConnectionAddress
Sourcepub fn parse_address(address: &str) -> Result<Self, Error>
pub fn parse_address(address: &str) -> Result<Self, Error>
Parse a MAVLink address string.
The address must be in one of the following formats:
tcpin:<addr>:<port>
to create a TCP server, listening for an incoming connectiontcpout:<addr>:<port>
to create a TCP clientudpin:<addr>:<port>
to create a UDP server, listening for incoming packetsudpout:<addr>:<port>
to create a UDP clientudpbcast:<addr>:<port>
to create a UDP broadcastserial:<port>:<baudrate>
to create a serial connectionfile:<path>
to extract file data, writing to such a connection does nothing
Trait Implementations§
Source§impl AsyncConnectable for ConnectionAddress
Available on crate feature tokio-1
only.
impl AsyncConnectable for ConnectionAddress
Available on crate feature
tokio-1
only.Source§impl Connectable for ConnectionAddress
Available on crate feature std
only.
impl Connectable for ConnectionAddress
Available on crate feature
std
only.Auto Trait Implementations§
impl Freeze for ConnectionAddress
impl RefUnwindSafe for ConnectionAddress
impl Send for ConnectionAddress
impl Sync for ConnectionAddress
impl Unpin for ConnectionAddress
impl UnwindSafe for ConnectionAddress
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