pub struct Exchange {
pub pattern: ExchangePattern,
pub in: Message,
pub out: Option<Message>,
pub properties: HashMap<String, String>,
}Fields§
§pattern: ExchangePattern§in: Message§out: Option<Message>§properties: HashMap<String, String>Free-form properties attached to this exchange (route-scoped).
Implementations§
Source§impl Exchange
impl Exchange
pub fn new(body: impl Into<Body>) -> Self
pub fn with_pattern(self, p: ExchangePattern) -> Self
Sourcepub fn effective_message(&self) -> &Message
pub fn effective_message(&self) -> &Message
Convenience accessor: the “effective” message is out if present,
otherwise in. EIPs write to out; the pipeline swaps it into in
before the next step if needed.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Exchange
impl !RefUnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnsafeUnpin for Exchange
impl !UnwindSafe for Exchange
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