pub struct ContainerComponent { /* private fields */ }Expand description
Component for creating container endpoints.
This component handles URIs with the “container” scheme and creates appropriate producer and consumer endpoints for Docker operations.
Containers created via run operation are tracked globally and can be
cleaned up on shutdown by calling cleanup_tracked_containers().
Implementations§
Source§impl ContainerComponent
impl ContainerComponent
Sourcepub fn with_config(config: ContainerGlobalConfig) -> Self
pub fn with_config(config: ContainerGlobalConfig) -> Self
Creates a container component with the given global config.
Sourcepub fn with_optional_config(config: Option<ContainerGlobalConfig>) -> Self
pub fn with_optional_config(config: Option<ContainerGlobalConfig>) -> Self
Creates a container component with optional global config.
Trait Implementations§
Source§impl Component for ContainerComponent
impl Component for ContainerComponent
Auto Trait Implementations§
impl Freeze for ContainerComponent
impl RefUnwindSafe for ContainerComponent
impl Send for ContainerComponent
impl Sync for ContainerComponent
impl Unpin for ContainerComponent
impl UnsafeUnpin for ContainerComponent
impl UnwindSafe for ContainerComponent
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