pub struct MockServiceRegistry { /* private fields */ }Expand description
Mock service registry for testing service discovery
Implementations§
Source§impl MockServiceRegistry
impl MockServiceRegistry
pub fn new() -> Self
pub fn register_service( &mut self, name: &str, type_name: &str, ptr: *mut c_void, )
pub fn has_service(&self, name: &str) -> bool
pub fn service_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MockServiceRegistry
impl RefUnwindSafe for MockServiceRegistry
impl !Send for MockServiceRegistry
impl !Sync for MockServiceRegistry
impl Unpin for MockServiceRegistry
impl UnsafeUnpin for MockServiceRegistry
impl UnwindSafe for MockServiceRegistry
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