pub struct SpringCloudConfigContainer(/* private fields */);Expand description
A Spring Cloud Config Server container.
Implementations§
Source§impl SpringCloudConfigContainer
impl SpringCloudConfigContainer
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds a container from the pinned default image
(hyness/spring-cloud-config-server:latest).
Sourcepub fn with_image(image: &str) -> Self
pub fn with_image(image: &str) -> Self
Builds a container from a caller-chosen image.
Sourcepub fn with_env(self, key: &str, value: &str) -> Self
pub fn with_env(self, key: &str, value: &str) -> Self
Sets a single environment variable for the container process — a thin
passthrough to Container::with_env, since this newtype wraps Container
rather than exposing it directly, so this passthrough is how a caller reaches
the same builder surface. Callers needing the classpath-backed native
profile call this before start() — see the module doc.
Sourcepub async fn start(self) -> Result<SpringCloudConfigGuard>
pub async fn start(self) -> Result<SpringCloudConfigGuard>
Boots the container.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SpringCloudConfigContainer
impl !UnwindSafe for SpringCloudConfigContainer
impl Freeze for SpringCloudConfigContainer
impl Send for SpringCloudConfigContainer
impl Sync for SpringCloudConfigContainer
impl Unpin for SpringCloudConfigContainer
impl UnsafeUnpin for SpringCloudConfigContainer
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