Struct trillium_testing::ServerConnector
source · pub struct ServerConnector<H> { /* private fields */ }
Expand description
a bridge between trillium servers and clients
Implementations§
source§impl<H> ServerConnector<H>where
H: Handler,
impl<H> ServerConnector<H>where
H: Handler,
Trait Implementations§
source§impl<H: Handler> Connector for ServerConnector<H>
impl<H: Handler> Connector for ServerConnector<H>
type Transport = TestTransport
source§fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 Url,
) -> Pin<Box<dyn Future<Output = Result<Self::Transport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 Url,
) -> Pin<Box<dyn Future<Output = Result<Self::Transport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Initiate a connection to the provided url Read more
fn spawn<Fut: Future<Output = ()> + Send + 'static>(&self, fut: Fut)
Auto Trait Implementations§
impl<H> Freeze for ServerConnector<H>
impl<H> RefUnwindSafe for ServerConnector<H>where
H: RefUnwindSafe,
impl<H> Send for ServerConnector<H>
impl<H> Sync for ServerConnector<H>
impl<H> Unpin for ServerConnector<H>
impl<H> UnwindSafe for ServerConnector<H>where
H: RefUnwindSafe,
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