pub struct ContainerEndpoint { /* private fields */ }Expand description
Endpoint for container operations.
This endpoint creates producers for executing container operations and consumers for receiving container events.
Implementations§
Source§impl ContainerEndpoint
impl ContainerEndpoint
Sourcepub fn docker_host(&self) -> Option<&str>
pub fn docker_host(&self) -> Option<&str>
Returns the Docker host configured for this endpoint.
Returns None if not set (for testing purposes).
Trait Implementations§
Source§impl Endpoint for ContainerEndpoint
impl Endpoint for ContainerEndpoint
Source§fn create_consumer(
&self,
rt: Arc<dyn RuntimeObservability>,
) -> Result<Box<dyn Consumer>, CamelError>
fn create_consumer( &self, rt: Arc<dyn RuntimeObservability>, ) -> Result<Box<dyn Consumer>, CamelError>
Create a consumer that reads from this endpoint. Read more
Source§fn create_producer(
&self,
_rt: Arc<dyn RuntimeObservability>,
_ctx: &ProducerContext,
) -> Result<BoxProcessor, CamelError>
fn create_producer( &self, _rt: Arc<dyn RuntimeObservability>, _ctx: &ProducerContext, ) -> Result<BoxProcessor, CamelError>
Create a producer that writes to this endpoint. Read more
Source§fn body_contract(&self) -> Option<BodyType>
fn body_contract(&self) -> Option<BodyType>
Optional body type contract for the producer. Read more
Source§fn polling_consumer(&self) -> Option<Box<dyn PollingConsumer>>
fn polling_consumer(&self) -> Option<Box<dyn PollingConsumer>>
Return a polling consumer for this endpoint, if supported. Read more
Auto Trait Implementations§
impl Freeze for ContainerEndpoint
impl RefUnwindSafe for ContainerEndpoint
impl Send for ContainerEndpoint
impl Sync for ContainerEndpoint
impl Unpin for ContainerEndpoint
impl UnsafeUnpin for ContainerEndpoint
impl UnwindSafe for ContainerEndpoint
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