pub struct ContainerConfig<L>where
L: ContainerLogConsumer,{
pub image_config: ImageConfig,
pub image_ext_config: ImageExtConfig<L>,
}Expand description
Struct to hold container configuration values.
Fields§
§image_config: ImageConfigSubset of options available for configuring Image implementations.
image_ext_config: ImageExtConfig<L>Subset of options available for configuring containers via ImageExt methods.
Implementations§
Source§impl<L> ContainerConfig<L>where
L: ContainerLogConsumer,
impl<L> ContainerConfig<L>where
L: ContainerLogConsumer,
Sourcepub fn new(
image_config: ImageConfig,
image_ext_config: ImageExtConfig<L>,
) -> Self
pub fn new( image_config: ImageConfig, image_ext_config: ImageExtConfig<L>, ) -> Self
Creates a new ContainerConfig with the given configuration values.
Sourcepub fn configure_container<RI, I>(self, image: RI) -> ContainerRequest<I>
pub fn configure_container<RI, I>(self, image: RI) -> ContainerRequest<I>
Alias for ImageExtConfig::configure_container.
Trait Implementations§
Source§impl<L> Debug for ContainerConfig<L>where
L: ContainerLogConsumer + Debug,
impl<L> Debug for ContainerConfig<L>where
L: ContainerLogConsumer + Debug,
Source§impl Default for ContainerConfig<LoggingConsumer>
impl Default for ContainerConfig<LoggingConsumer>
Auto Trait Implementations§
impl<L> Freeze for ContainerConfig<L>where
L: Freeze,
impl<L> RefUnwindSafe for ContainerConfig<L>where
L: RefUnwindSafe,
impl<L> Send for ContainerConfig<L>
impl<L> Sync for ContainerConfig<L>
impl<L> Unpin for ContainerConfig<L>where
L: Unpin,
impl<L> UnwindSafe for ContainerConfig<L>where
L: UnwindSafe,
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request