Trait distant_net::WindowsPipeServerExt
source · [−]pub trait WindowsPipeServerExt {
type Request;
type Response;
fn start<'async_trait, A, C>(
self,
addr: A,
codec: C
) -> Pin<Box<dyn Future<Output = Result<WindowsPipeServerRef>> + Send + 'async_trait>>
where
A: AsRef<OsStr> + Send,
C: Codec + Send + Sync + 'static,
A: 'async_trait,
C: 'async_trait,
Self: 'async_trait;
fn start_local<'async_trait, N, C>(
self,
name: N,
codec: C
) -> Pin<Box<dyn Future<Output = Result<WindowsPipeServerRef>> + Send + 'async_trait>>
where
Self: Sized,
N: AsRef<OsStr> + Send,
C: Codec + Send + Sync + 'static,
N: 'async_trait,
C: 'async_trait,
Self: Send + 'async_trait,
{ ... }
}Expand description
Extension trait to provide a reference implementation of starting a Windows pipe server
that will listen for new connections and process them using the Server implementation
Required Associated Types
Required Methods
Start a new server at the specified address using the given codec
Provided Methods
Start a new server at the specified address via \\.\pipe\{name} using the given codec