pub struct TestingServer { /* private fields */ }Implementations§
Source§impl TestingServer
impl TestingServer
pub fn session(&self) -> &Session
pub fn reset_session(&mut self)
pub fn get_data<D: Any>(&self) -> &D
pub async fn request<R>(&self, r: R) -> Result<R::Response, R::Error>where
R: Request<Action = Action> + IntoMessage<Action, EncryptedBytes>,
R::Response: FromMessage<Action, EncryptedBytes>,
R::Error: FromMessage<Action, EncryptedBytes>,
Auto Trait Implementations§
impl Freeze for TestingServer
impl !RefUnwindSafe for TestingServer
impl Send for TestingServer
impl Sync for TestingServer
impl Unpin for TestingServer
impl !UnwindSafe for TestingServer
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