pub struct BeanRegistry { /* private fields */ }Implementations§
Source§impl BeanRegistry
impl BeanRegistry
pub fn new() -> Self
pub fn register<B>(&mut self, name: impl Into<String>, bean: B)where
B: BeanProcessor + 'static,
pub fn get(&self, name: &str) -> Option<Arc<dyn BeanProcessor>>
pub async fn invoke( &self, bean_name: &str, method: &str, exchange: &mut Exchange, ) -> Result<(), CamelError>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BeanRegistry
impl !RefUnwindSafe for BeanRegistry
impl Send for BeanRegistry
impl Sync for BeanRegistry
impl Unpin for BeanRegistry
impl UnsafeUnpin for BeanRegistry
impl !UnwindSafe for BeanRegistry
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