pub struct CronComponent { /* private fields */ }Expand description
Component for the cron: scheme. Factory for CronEndpoints.
By default uses TokioCronService. Inject a custom CronService via
CronComponent::with_service for alternative backends.
Implementations§
Source§impl CronComponent
impl CronComponent
Sourcepub fn with_service(service: Arc<dyn CronService>) -> Self
pub fn with_service(service: Arc<dyn CronService>) -> Self
Create with a custom CronService implementation.
Trait Implementations§
Source§impl Component for CronComponent
impl Component for CronComponent
Source§fn create_endpoint(
&self,
uri: &str,
_ctx: &dyn ComponentContext,
) -> Result<Box<dyn Endpoint>, CamelError>
fn create_endpoint( &self, uri: &str, _ctx: &dyn ComponentContext, ) -> Result<Box<dyn Endpoint>, CamelError>
Create an endpoint from a URI string.
Source§fn metadata(&self) -> ComponentMetadata
fn metadata(&self) -> ComponentMetadata
Declare this component’s metadata (URI options, capabilities, version). Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CronComponent
impl !UnwindSafe for CronComponent
impl Freeze for CronComponent
impl Send for CronComponent
impl Sync for CronComponent
impl Unpin for CronComponent
impl UnsafeUnpin for CronComponent
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