Skip to main content

Crate coreon_core

Crate coreon_core 

Source
Expand description

camel-core — core abstractions for camel-rs.

The module layout mirrors Apache Camel’s conceptual model, adapted to Rust:

  • message / exchange: the data carrier
  • processor: async transformation step
  • endpoint: producer/consumer factory addressable by URI
  • component: endpoint factory keyed by scheme
  • route: an Endpoint consumer feeding a chain of processors
  • context: the top-level runtime holding components and routes
  • error: CamelError, the library-wide error type

Re-exports§

pub use component::Component;
pub use context::CamelContext;
pub use endpoint::Consumer;
pub use endpoint::Endpoint;
pub use endpoint::Producer;
pub use error::CamelError;
pub use error::Result;
pub use exchange::Exchange;
pub use exchange::ExchangePattern;
pub use message::Body;
pub use message::Message;
pub use processor::FnProcessor;
pub use processor::Processor;
pub use route::Route;
pub use route::RouteId;
pub use uri::CamelUri;

Modules§

component
Component — factory that turns URIs into Endpoints.
context
CamelContext — registry of components, endpoints, and running routes.
endpoint
Endpoint — addressable source/sink of exchanges.
error
Library-wide error type.
exchange
Exchange — the per-message state that flows through a route.
message
Message — payload + headers, the in/out of an Exchange.
processor
Processor — async transformation of an Exchange.
route
Route — a consumer Endpoint wired to a Processor pipeline.
uri
Camel-style URI: scheme:path?k1=v1&k2=v2.