pub struct ImageExtConfig<L>where
L: ContainerLogConsumer,{ /* private fields */ }Expand description
Container configuration for the subset of ImageExt parameters
that we use in tests.
Implementations§
Source§impl<L> ImageExtConfig<L>where
L: ContainerLogConsumer,
impl<L> ImageExtConfig<L>where
L: ContainerLogConsumer,
Sourcepub fn with_container_name(self, container_name: String) -> Self
pub fn with_container_name(self, container_name: String) -> Self
Sets the container name in the config to the given string.
Sourcepub fn with_network(self, name: String) -> Self
pub fn with_network(self, name: String) -> Self
Sets the container network name to the given string.
Sourcepub fn with_log_consumer(self, log_consumer: L) -> Self
pub fn with_log_consumer(self, log_consumer: L) -> Self
Sets the log consumer for the container to the given log consumer.
Sourcepub fn configure_container<RI, I>(self, image: RI) -> ContainerRequest<I>
pub fn configure_container<RI, I>(self, image: RI) -> ContainerRequest<I>
Calls the appropriate ImageExt methods for the values
that have been set in the other methods.
Trait Implementations§
Source§impl<L> Clone for ImageExtConfig<L>where
L: ContainerLogConsumer + Clone,
impl<L> Clone for ImageExtConfig<L>where
L: ContainerLogConsumer + Clone,
Source§fn clone(&self) -> ImageExtConfig<L>
fn clone(&self) -> ImageExtConfig<L>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<L> Debug for ImageExtConfig<L>where
L: ContainerLogConsumer + Debug,
impl<L> Debug for ImageExtConfig<L>where
L: ContainerLogConsumer + Debug,
Source§impl Default for ImageExtConfig<LoggingConsumer>
impl Default for ImageExtConfig<LoggingConsumer>
Auto Trait Implementations§
impl<L> Freeze for ImageExtConfig<L>where
L: Freeze,
impl<L> RefUnwindSafe for ImageExtConfig<L>where
L: RefUnwindSafe,
impl<L> Send for ImageExtConfig<L>
impl<L> Sync for ImageExtConfig<L>
impl<L> Unpin for ImageExtConfig<L>where
L: Unpin,
impl<L> UnwindSafe for ImageExtConfig<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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