pub struct TestingModule { /* private fields */ }Expand description
Compiled test module with an in-process BootApplication.
Implementations§
Source§impl TestingModule
impl TestingModule
pub fn builder() -> TestingModuleBuilder
pub fn app(&self) -> &BootApplication
pub fn into_app(self) -> BootApplication
pub fn module_ref(&self) -> &ModuleRef
pub fn get<T>(&self) -> Result<Arc<T>>
pub fn get_named<T>(&self, token: &str) -> Result<Arc<T>>
pub fn get_optional<T>(&self) -> Result<Option<Arc<T>>>
pub fn get_optional_named<T>(&self, token: &str) -> Result<Option<Arc<T>>>
pub async fn call(&self, request: BootRequest) -> Result<BootResponse>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TestingModule
impl !UnwindSafe for TestingModule
impl Freeze for TestingModule
impl Send for TestingModule
impl Sync for TestingModule
impl Unpin for TestingModule
impl UnsafeUnpin for TestingModule
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