pub struct Server<A, B>where
A: Authenticator,
B: Bicrypter,{ /* private fields */ }Expand description
Represents a server configuration prior to listening
Implementations§
Source§impl<A, B> Server<A, B>
impl<A, B> Server<A, B>
Sourcepub async fn listen(self) -> Result<ListeningServer>
pub async fn listen(self) -> Result<ListeningServer>
Starts actively listening for msgs via the specified transport medium
Will fail if using TCP transport as requires Clone; should instead
use cloneable_listen if using TCP
Source§impl<A, B> Server<A, B>
impl<A, B> Server<A, B>
Sourcepub async fn cloneable_listen(self) -> Result<ListeningServer>
pub async fn cloneable_listen(self) -> Result<ListeningServer>
Starts actively listening for msgs via the specified transport medium, using cloneable methods for Authenticator and Bicrypter operations
Trait Implementations§
Auto Trait Implementations§
impl<A, B> Freeze for Server<A, B>
impl<A, B> RefUnwindSafe for Server<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Server<A, B>
impl<A, B> Sync for Server<A, B>
impl<A, B> Unpin for Server<A, B>
impl<A, B> UnsafeUnpin for Server<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Server<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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