pub(super) struct ErrorMessage {
status: &'static str,
message: String,
reason: &'static str,
details: Option<ErrorDetails>,
code: Option<u16>,
}Expand description
The status of a failed session in JSON, the fields in the order of k8s.io/cri-streaming.
Fields§
§status: &'static str§message: String§reason: &'static str§details: Option<ErrorDetails>§code: Option<u16>Implementations§
Source§impl ErrorMessage
impl ErrorMessage
Sourcepub(super) fn new<T>(exit_code: T) -> Selfwhere
T: Display,
pub(super) fn new<T>(exit_code: T) -> Selfwhere
T: Display,
The status of a command which exited with the code, its message ends with the exit error like the text status before v4.
Sourcefn internal(message: String) -> Self
fn internal(message: String) -> Self
An error of the session itself, for example a command which could not
be started, see Status::failed.
Trait Implementations§
Source§impl Debug for ErrorMessage
impl Debug for ErrorMessage
Auto Trait Implementations§
impl Freeze for ErrorMessage
impl RefUnwindSafe for ErrorMessage
impl Send for ErrorMessage
impl Sync for ErrorMessage
impl Unpin for ErrorMessage
impl UnsafeUnpin for ErrorMessage
impl UnwindSafe for ErrorMessage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].