#[non_exhaustive]pub struct PluginApplyError {
pub plugin_name: String,
pub target: PluginTarget,
pub source: PluginError,
}Expand description
An error applying a named plugin to a configuration target.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.plugin_name: StringThe plugin name reported by ClientPlugin::name or its worker equivalent.
target: PluginTargetThe configuration target being modified.
source: PluginErrorThe error returned by the plugin.
Implementations§
Source§impl PluginApplyError
impl PluginApplyError
Sourcepub fn new(
plugin_name: impl Into<String>,
target: PluginTarget,
source: PluginError,
) -> Self
pub fn new( plugin_name: impl Into<String>, target: PluginTarget, source: PluginError, ) -> Self
Create an error for a plugin that failed to configure a target.
Internal: This method is intended to be used during worker construction. Arguments can change or be removed in breaking manners.
Trait Implementations§
Source§impl Debug for PluginApplyError
impl Debug for PluginApplyError
Source§impl Display for PluginApplyError
impl Display for PluginApplyError
Source§impl Error for PluginApplyError
impl Error for PluginApplyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PluginApplyError> for ClientConnectError
impl From<PluginApplyError> for ClientConnectError
Source§fn from(source: PluginApplyError) -> Self
fn from(source: PluginApplyError) -> Self
Converts to this type from the input type.
Source§impl From<PluginApplyError> for ClientNewError
impl From<PluginApplyError> for ClientNewError
Source§fn from(source: PluginApplyError) -> Self
fn from(source: PluginApplyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PluginApplyError
impl !UnwindSafe for PluginApplyError
impl Freeze for PluginApplyError
impl Send for PluginApplyError
impl Sync for PluginApplyError
impl Unpin for PluginApplyError
impl UnsafeUnpin for PluginApplyError
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> 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