pub struct DiscoveryService { /* private fields */ }Expand description
Read-only discovery snapshot for a built Boot application.
Implementations§
Source§impl DiscoveryService
impl DiscoveryService
pub fn from_app(app: &BootApplication) -> Result<Self>
pub fn modules(&self) -> &[DiscoveredModule]
pub fn routes(&self) -> &[DiscoveredRoute]
pub fn gateways(&self) -> &[DiscoveredGateway]
pub fn message_patterns(&self) -> &[DiscoveredMessagePattern]
pub fn graph(&self) -> &ApplicationGraph
pub fn module(&self, name: &str) -> Option<&DiscoveredModule>
pub fn modules_with_provider( &self, token: &ProviderToken, ) -> Vec<&DiscoveredModule>
pub fn routes_for_module(&self, module_name: &str) -> Vec<&DiscoveredRoute>
pub fn routes_for_controller( &self, controller_prefix: &str, ) -> Vec<&DiscoveredRoute>
pub fn gateways_for_module(&self, module_name: &str) -> Vec<&DiscoveredGateway>
pub fn message_patterns_for_module( &self, module_name: &str, ) -> Vec<&DiscoveredMessagePattern>
pub fn gateway(&self, path: &str) -> Option<&DiscoveredGateway>
pub fn message_pattern( &self, pattern: &str, ) -> Option<&DiscoveredMessagePattern>
pub fn reflector(&self) -> Reflector
Trait Implementations§
Source§impl Clone for DiscoveryService
impl Clone for DiscoveryService
Source§fn clone(&self) -> DiscoveryService
fn clone(&self) -> DiscoveryService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiscoveryService
impl Debug for DiscoveryService
Source§impl PartialEq for DiscoveryService
impl PartialEq for DiscoveryService
impl StructuralPartialEq for DiscoveryService
Auto Trait Implementations§
impl Freeze for DiscoveryService
impl RefUnwindSafe for DiscoveryService
impl Send for DiscoveryService
impl Sync for DiscoveryService
impl Unpin for DiscoveryService
impl UnsafeUnpin for DiscoveryService
impl UnwindSafe for DiscoveryService
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