pub struct Server<L> { /* private fields */ }Implementations§
Source§impl<L> Server<L>
impl<L> Server<L>
pub fn register_request<H>(&mut self, handler: H)
pub fn register_data<D>(&mut self, data: D)
pub fn into_inner(self) -> Server<Action, EncryptedBytes, L, Keypair>
Source§impl Server<TcpListener>
impl Server<TcpListener>
pub async fn new<A>(addr: A, priv_key: Keypair) -> Result<Self>where
A: ToSocketAddrs,
Source§impl Server<PanicListener>
impl Server<PanicListener>
pub fn new_testing(priv_key: Keypair) -> Self
pub fn build(self) -> TestingServer
Auto Trait Implementations§
impl<L> Freeze for Server<L>where
L: Freeze,
impl<L> !RefUnwindSafe for Server<L>
impl<L> Send for Server<L>where
L: Send,
impl<L> Sync for Server<L>where
L: Sync,
impl<L> Unpin for Server<L>where
L: Unpin,
impl<L> !UnwindSafe for Server<L>
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