pub struct ServiceExplorer { /* private fields */ }Expand description
Service explorer for interactive dependency investigation
Implementations§
Source§impl ServiceExplorer
impl ServiceExplorer
Sourcepub fn new(descriptors: Vec<ServiceDescriptor>) -> Self
pub fn new(descriptors: Vec<ServiceDescriptor>) -> Self
Create a new service explorer
Sourcepub fn find_paths(
&self,
from: &ServiceId,
to: &ServiceId,
) -> Vec<Vec<ServiceId>>
pub fn find_paths( &self, from: &ServiceId, to: &ServiceId, ) -> Vec<Vec<ServiceId>>
Find all paths between two services
Sourcepub fn get_dependents(&self, service_id: &ServiceId) -> Vec<&ServiceId>
pub fn get_dependents(&self, service_id: &ServiceId) -> Vec<&ServiceId>
Get services that depend on a given service
Sourcepub fn get_dependency_depth(&self, service_id: &ServiceId) -> usize
pub fn get_dependency_depth(&self, service_id: &ServiceId) -> usize
Get dependency depth for a service
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Export service information as a report
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceExplorer
impl !UnwindSafe for ServiceExplorer
impl Freeze for ServiceExplorer
impl Send for ServiceExplorer
impl Sync for ServiceExplorer
impl Unpin for ServiceExplorer
impl UnsafeUnpin for ServiceExplorer
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