pub struct Builder<S = NoServer> { /* private fields */ }
Available on crate feature
runtime
only.Expand description
Configures a controller Runtime
Implementations§
source§impl<S> Builder<S>
impl<S> Builder<S>
sourcepub fn with_admin(self, admin: impl Into<Builder>) -> Self
pub fn with_admin(self, admin: impl Into<Builder>) -> Self
Configures the runtime to use the given Builder
sourcepub fn with_client(self, client: ClientArgs) -> Self
pub fn with_client(self, client: ClientArgs) -> Self
Configures the runtime to use the given ClientArgs
sourcepub fn with_log(self, filter: LogFilter, format: LogFormat) -> Self
pub fn with_log(self, filter: LogFilter, format: LogFormat) -> Self
Configures the runtime to use the given logging configuration
sourcepub fn with_fixed_delay_on_error(self, delay: Duration) -> Self
pub fn with_fixed_delay_on_error(self, delay: Duration) -> Self
Configures the runtime to use the given fixed delay when a stream fails
sourcepub fn with_metrics(self, metrics: RuntimeMetrics) -> Self
pub fn with_metrics(self, metrics: RuntimeMetrics) -> Self
Configures the runtime to record watch metrics with the given registry
source§impl Builder<NoServer>
impl Builder<NoServer>
sourcepub fn with_server(self, server: ServerArgs) -> Builder<ServerArgs>
Available on features="runtime"
and crate feature server
only.
pub fn with_server(self, server: ServerArgs) -> Builder<ServerArgs>
features="runtime"
and crate feature server
only.Configures the runtime to start a server with the given ServerArgs
sourcepub fn with_optional_server(
self,
server: Option<ServerArgs>
) -> Builder<Option<ServerArgs>>
Available on features="runtime"
and crate feature server
only.
pub fn with_optional_server( self, server: Option<ServerArgs> ) -> Builder<Option<ServerArgs>>
features="runtime"
and crate feature server
only.Configures the runtime to optionally start a server with the given ServerArgs
This is useful for runtimes that usually run an admission controller, but may want to support running without it when running outside the cluster.
source§impl Builder<ServerArgs>
impl Builder<ServerArgs>
source§impl Builder<Option<ServerArgs>>
impl Builder<Option<ServerArgs>>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Builder<S>where
S: Freeze,
impl<S = NoServer> !RefUnwindSafe for Builder<S>
impl<S> Send for Builder<S>where
S: Send,
impl<S> Sync for Builder<S>where
S: Sync,
impl<S> Unpin for Builder<S>where
S: Unpin,
impl<S = NoServer> !UnwindSafe for Builder<S>
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> 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 more