Trait cw_iper_test::StargateUrls
source · pub trait StargateUrls {
// Required methods
fn is_query_type_url(&self, type_url: String) -> bool;
fn is_msg_type_url(&self, type_url: String) -> bool;
fn type_urls(&self) -> Vec<String>;
}
Expand description
Trait required by StargateApplication
for the managment of type_urls
.
This shouldn’t be implemented directly into a StargateApplication
, but instead using the derive macro
Stargateand #[urls]
proc_macro_attribute
from cw-iper-test-macros`.
Required Methods§
sourcefn is_query_type_url(&self, type_url: String) -> bool
fn is_query_type_url(&self, type_url: String) -> bool
Check if a type_url of a GrpcQuery
is handled by the StargateApplication
.
sourcefn is_msg_type_url(&self, type_url: String) -> bool
fn is_msg_type_url(&self, type_url: String) -> bool
Check if a type_url of a AnyMsg
is handled by the StargateApplication
.