Struct distant_net::server::WindowsPipeServerBuilder
source · pub struct WindowsPipeServerBuilder<T>(_);Implementations
sourceimpl<T> WindowsPipeServerBuilder<T>
impl<T> WindowsPipeServerBuilder<T>
pub fn config(self, config: ServerConfig) -> Self
pub fn handler<U>(self, handler: U) -> WindowsPipeServerBuilder<U>
pub fn verifier(self, verifier: Verifier) -> Self
sourceimpl<T> WindowsPipeServerBuilder<T>where
T: ServerHandler + Sync + 'static,
T::Request: DeserializeOwned + Send + Sync + 'static,
T::Response: Serialize + Send + 'static,
T::LocalData: Default + Send + Sync + 'static,
impl<T> WindowsPipeServerBuilder<T>where
T: ServerHandler + Sync + 'static,
T::Request: DeserializeOwned + Send + Sync + 'static,
T::Response: Serialize + Send + 'static,
T::LocalData: Default + Send + Sync + 'static,
sourcepub async fn start<A>(self, addr: A) -> Result<WindowsPipeServerRef>where
A: AsRef<OsStr> + Send,
pub async fn start<A>(self, addr: A) -> Result<WindowsPipeServerRef>where
A: AsRef<OsStr> + Send,
Start a new server at the specified address using the given codec
sourcepub async fn start_local<N>(self, name: N) -> Result<WindowsPipeServerRef>where
Self: Sized,
N: AsRef<OsStr> + Send,
pub async fn start_local<N>(self, name: N) -> Result<WindowsPipeServerRef>where
Self: Sized,
N: AsRef<OsStr> + Send,
Start a new server at the specified address via \\.\pipe\{name} using the given codec
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for WindowsPipeServerBuilder<T>
impl<T> Send for WindowsPipeServerBuilder<T>where
T: Send,
impl<T> Sync for WindowsPipeServerBuilder<T>where
T: Sync,
impl<T> Unpin for WindowsPipeServerBuilder<T>where
T: Unpin,
impl<T> !UnwindSafe for WindowsPipeServerBuilder<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more