mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-03-12 17:06:37 -04:00
fix windows
This commit is contained in:
parent
42d8c6a291
commit
b6d6c8127a
@ -84,6 +84,7 @@ cfg_if! {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[expect(clippy::unused_async)]
|
||||||
pub async fn txt_lookup<S: AsRef<str>>(host: S) -> EyreResult<Vec<String>> {
|
pub async fn txt_lookup<S: AsRef<str>>(host: S) -> EyreResult<Vec<String>> {
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(target_os = "windows")] {
|
if #[cfg(target_os = "windows")] {
|
||||||
@ -156,6 +157,7 @@ pub async fn txt_lookup<S: AsRef<str>>(host: S) -> EyreResult<Vec<String>> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[expect(clippy::unused_async)]
|
||||||
pub async fn ptr_lookup(ip_addr: IpAddr) -> EyreResult<String> {
|
pub async fn ptr_lookup(ip_addr: IpAddr) -> EyreResult<String> {
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(target_os = "windows")] {
|
if #[cfg(target_os = "windows")] {
|
||||||
|
@ -21,6 +21,7 @@ pub struct IpcStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl IpcStream {
|
impl IpcStream {
|
||||||
|
#[expect(clippy::unused_async)]
|
||||||
pub async fn connect<P: AsRef<Path>>(path: P) -> io::Result<IpcStream> {
|
pub async fn connect<P: AsRef<Path>>(path: P) -> io::Result<IpcStream> {
|
||||||
Ok(IpcStream {
|
Ok(IpcStream {
|
||||||
internal: IpcStreamInternal::Client(
|
internal: IpcStreamInternal::Client(
|
||||||
@ -116,7 +117,7 @@ impl FuturesAsyncWrite for IpcStream {
|
|||||||
|
|
||||||
pub struct IpcIncoming<'a> {
|
pub struct IpcIncoming<'a> {
|
||||||
listener: IpcListener,
|
listener: IpcListener,
|
||||||
unord: FuturesUnordered<PinBoxFuture<io::Result<IpcStream>>>,
|
unord: FuturesUnordered<PinBoxFutureStatic<io::Result<IpcStream>>>,
|
||||||
phantom: std::marker::PhantomData<&'a ()>,
|
phantom: std::marker::PhantomData<&'a ()>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,7 +164,7 @@ impl IpcListener {
|
|||||||
|
|
||||||
/// Accepts a new incoming connection to this listener.
|
/// Accepts a new incoming connection to this listener.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn accept(&self) -> PinBoxFuture<io::Result<IpcStream>> {
|
pub fn accept(&self) -> PinBoxFutureStatic<io::Result<IpcStream>> {
|
||||||
if self.path.is_none() {
|
if self.path.is_none() {
|
||||||
return Box::pin(std::future::ready(Err(io::Error::from(
|
return Box::pin(std::future::ready(Err(io::Error::from(
|
||||||
io::ErrorKind::NotConnected,
|
io::ErrorKind::NotConnected,
|
||||||
|
@ -54,6 +54,7 @@ impl PlatformSupportWindows {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[expect(clippy::unused_async)]
|
||||||
pub async fn get_interfaces(
|
pub async fn get_interfaces(
|
||||||
&mut self,
|
&mut self,
|
||||||
interfaces: &mut BTreeMap<String, NetworkInterface>,
|
interfaces: &mut BTreeMap<String, NetworkInterface>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user