pub struct TestingModule { /* private fields */ }Implementations§
Source§impl TestingModule
impl TestingModule
pub fn container(&self) -> &Container
pub fn resolve<T>(&self) -> Result<Arc<T>, ContainerError>
pub fn http_router(&self) -> Router
pub fn graphql_router<Query, Mutation, Subscription>(
&self,
schema: Schema<Query, Mutation, Subscription>,
) -> Routerwhere
Query: ObjectType + Send + Sync + 'static,
Mutation: ObjectType + Send + Sync + 'static,
Subscription: SubscriptionType + Send + Sync + 'static,
pub fn graphql_router_with_paths<Query, Mutation, Subscription>(
&self,
schema: Schema<Query, Mutation, Subscription>,
endpoint: impl Into<String>,
graphiql_endpoint: Option<String>,
) -> Routerwhere
Query: ObjectType + Send + Sync + 'static,
Mutation: ObjectType + Send + Sync + 'static,
Subscription: SubscriptionType + Send + Sync + 'static,
pub fn grpc_context(&self) -> GrpcContext
pub fn websocket_context(&self) -> WebSocketContext
pub fn websocket_context_with( &self, request_id: Option<RequestId>, auth_identity: Option<AuthIdentity>, headers: HeaderMap, ) -> WebSocketContext
pub fn microservice_context( &self, transport: impl Into<String>, pattern: impl Into<String>, ) -> MicroserviceContext
pub fn microservice_context_with_metadata( &self, transport: impl Into<String>, pattern: impl Into<String>, metadata: TransportMetadata, ) -> MicroserviceContext
pub fn microservice_client( &self, registry: MicroserviceRegistry, ) -> InProcessMicroserviceClient
pub fn microservice_client_with_metadata( &self, registry: MicroserviceRegistry, transport: impl Into<String>, metadata: TransportMetadata, ) -> InProcessMicroserviceClient
pub fn shutdown(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for TestingModule
impl Clone for TestingModule
Source§fn clone(&self) -> TestingModule
fn clone(&self) -> TestingModule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TestingModule
impl !RefUnwindSafe for TestingModule
impl Send for TestingModule
impl Sync for TestingModule
impl Unpin for TestingModule
impl UnsafeUnpin for TestingModule
impl !UnwindSafe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request