pub struct ChannelConfigValidators { /* private fields */ }Expand description
Validators supplied by the host before constructing its pack registry.
Clones retain the same callbacks. Independent registries share no mutable registration state; callbacks must not start resident work during validation.
Implementations§
Source§impl ChannelConfigValidators
impl ChannelConfigValidators
Sourcepub fn register(
&mut self,
name: impl Into<String>,
validator: ChannelConfigValidator,
) -> Result<(), RuntimeError>
pub fn register( &mut self, name: impl Into<String>, validator: ChannelConfigValidator, ) -> Result<(), RuntimeError>
Register one component name without replacing an existing callback.
Sourcepub fn validate(
&self,
section: &ChannelSectionConfig,
) -> Result<(), RuntimeError>
pub fn validate( &self, section: &ChannelSectionConfig, ) -> Result<(), RuntimeError>
Validate registered components in name order, preserving their typed errors. Unregistered configuration remains retained and inert.
Trait Implementations§
Source§impl Clone for ChannelConfigValidators
impl Clone for ChannelConfigValidators
Source§impl Debug for ChannelConfigValidators
impl Debug for ChannelConfigValidators
Auto Trait Implementations§
impl !RefUnwindSafe for ChannelConfigValidators
impl !UnwindSafe for ChannelConfigValidators
impl Forget for ChannelConfigValidators
impl Freeze for ChannelConfigValidators
impl Move for ChannelConfigValidators
impl Send for ChannelConfigValidators
impl Sync for ChannelConfigValidators
impl Unpin for ChannelConfigValidators
impl UnsafeUnpin for ChannelConfigValidators
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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