pub struct MockEndpoint(/* private fields */);Expand description
A mock endpoint that records all exchanges sent to it.
This is a thin wrapper around Arc<MockEndpointInner>. Multiple
MockEndpoint instances created with the same name share the same inner
storage.
Trait Implementations§
Source§impl Endpoint for MockEndpoint
impl Endpoint for MockEndpoint
Source§fn create_consumer(&self) -> Result<Box<dyn Consumer>, CamelError>
fn create_consumer(&self) -> Result<Box<dyn Consumer>, CamelError>
Create a consumer that reads from this endpoint.
Source§fn create_producer(
&self,
_ctx: &ProducerContext,
) -> Result<BoxProcessor, CamelError>
fn create_producer( &self, _ctx: &ProducerContext, ) -> Result<BoxProcessor, CamelError>
Create a producer that writes to this endpoint.
Auto Trait Implementations§
impl Freeze for MockEndpoint
impl !RefUnwindSafe for MockEndpoint
impl Send for MockEndpoint
impl Sync for MockEndpoint
impl Unpin for MockEndpoint
impl UnsafeUnpin for MockEndpoint
impl !UnwindSafe for MockEndpoint
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