refactor(managed): remove legacy runtime
This commit is contained in:
1 parent
1a9e8f28aa
commit
c599c84715
18 files changed
+36
-7847
No files matched your search
@@ -15,14 +15,6 @@ pub(crate) struct ReceivedDatagram {
|
||||
pub(crate) meta: ReceiveMeta,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub(crate) struct ReceivedDatagramFrom {
|
||||
pub(crate) len: usize,
|
||||
pub(crate) source: SocketAddr,
|
||||
pub(crate) received_at: ClientTimestamp,
|
||||
pub(crate) meta: ReceiveMeta,
|
||||
}
|
||||
|
||||
#[cfg(not(all(target_os = "linux", feature = "ancillary")))]
|
||||
pub(crate) fn recv_datagram(
|
||||
socket: &UdpSocket,
|
||||
@@ -38,22 +30,6 @@ pub(crate) fn recv_datagram(
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(not(all(target_os = "linux", feature = "ancillary")))]
|
||||
pub(crate) fn recv_datagram_from(
|
||||
socket: &UdpSocket,
|
||||
buf: &mut [u8],
|
||||
) -> Result<ReceivedDatagramFrom, io::Error> {
|
||||
let (len, source) = socket.recv_from(buf)?;
|
||||
let received_at = ClientTimestamp::now();
|
||||
|
||||
Ok(ReceivedDatagramFrom {
|
||||
len,
|
||||
source,
|
||||
received_at,
|
||||
meta: ReceiveMeta::default(),
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(all(target_os = "linux", feature = "ancillary"))]
|
||||
pub(crate) fn recv_datagram(
|
||||
socket: &UdpSocket,
|
||||
@@ -88,14 +64,6 @@ pub(crate) fn try_recv_tokio_datagram(
|
||||
linux::try_recv_tokio_datagram(socket, buf)
|
||||
}
|
||||
|
||||
#[cfg(all(target_os = "linux", feature = "ancillary"))]
|
||||
pub(crate) fn recv_datagram_from(
|
||||
socket: &UdpSocket,
|
||||
buf: &mut [u8],
|
||||
) -> Result<ReceivedDatagramFrom, io::Error> {
|
||||
linux::recv_datagram_from(socket, buf)
|
||||
}
|
||||
|
||||
#[cfg(not(all(target_os = "linux", feature = "ancillary")))]
|
||||
pub(crate) fn configure_receive_metadata(
|
||||
_socket: &UdpSocket,
|
||||
|
||||
Reference in new issue
Block a user