pub struct PrometheusConnectionDisplay { /* private fields */ }Expand description
Display for Prometheus connection operations
Implementations§
Source§impl PrometheusConnectionDisplay
impl PrometheusConnectionDisplay
pub fn new(mode: ConnectionMode) -> Self
Sourcepub fn port_forward_established(
&self,
local_port: u16,
service: &str,
namespace: &str,
)
pub fn port_forward_established( &self, local_port: u16, service: &str, namespace: &str, )
Show port-forward established
Sourcepub fn testing_connection(&self)
pub fn testing_connection(&self)
Show testing connection
Sourcepub fn ready_for_use(&self, url: &str)
pub fn ready_for_use(&self, url: &str)
Show connection ready for use
Sourcepub fn connection_failed(&self, error: &str, suggestions: &[&str])
pub fn connection_failed(&self, error: &str, suggestions: &[&str])
Show connection failed
Sourcepub fn auth_required(&self)
pub fn auth_required(&self)
Show auth required message
Sourcepub fn background_process_info(&self, process_id: &str)
pub fn background_process_info(&self, process_id: &str)
Show background process info
Auto Trait Implementations§
impl Freeze for PrometheusConnectionDisplay
impl RefUnwindSafe for PrometheusConnectionDisplay
impl Send for PrometheusConnectionDisplay
impl Sync for PrometheusConnectionDisplay
impl Unpin for PrometheusConnectionDisplay
impl UnwindSafe for PrometheusConnectionDisplay
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> 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 moreCreates a shared type from an unshared type.