Struct distant_net::server::Server
source · pub struct Server<T> { /* private fields */ }Expand description
Represents a server that can be used to receive requests & send responses to clients.
Implementations§
source§impl<T> Server<T>
impl<T> Server<T>
sourcepub fn into_tcp_builder(self) -> TcpServerBuilder<T>
pub fn into_tcp_builder(self) -> TcpServerBuilder<T>
Consume Server and produce a builder for a TCP variant.
source§impl<T> Server<T>
impl<T> Server<T>
sourcepub fn into_windows_pipe_builder(self) -> WindowsPipeServerBuilder<T>
pub fn into_windows_pipe_builder(self) -> WindowsPipeServerBuilder<T>
Consume Server and produce a builder for a Windows pipe variant.
source§impl Server<()>
impl Server<()>
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new Server, starting with a default configuration, no authentication methods,
and no ServerHandler.
sourcepub fn tcp() -> TcpServerBuilder<()>
pub fn tcp() -> TcpServerBuilder<()>
Creates a new TcpServerBuilder that is used to construct a Server.
sourcepub fn windows_pipe() -> WindowsPipeServerBuilder<()>
pub fn windows_pipe() -> WindowsPipeServerBuilder<()>
Creates a new WindowsPipeServerBuilder that is used to construct a Server.
source§impl<T> Server<T>
impl<T> Server<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Server<T>
impl<T> Send for Server<T>where T: Send,
impl<T> Sync for Server<T>where T: Sync,
impl<T> Unpin for Server<T>where T: Unpin,
impl<T> !UnwindSafe for Server<T>
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