pub struct DefaultFactory<T: Value + Default> { /* private fields */ }Expand description
Represents the default factory used to create configuration options.
Implementations§
Source§impl<T: Value + Default> DefaultFactory<T>
impl<T: Value + Default> DefaultFactory<T>
Sourcepub fn new(
configurations: Vec<Ref<dyn Configure<T>>>,
post_configurations: Vec<Ref<dyn PostConfigure<T>>>,
validations: Vec<Ref<dyn Validate<T>>>,
) -> Self
pub fn new( configurations: Vec<Ref<dyn Configure<T>>>, post_configurations: Vec<Ref<dyn PostConfigure<T>>>, validations: Vec<Ref<dyn Validate<T>>>, ) -> Self
Initializes a new options factory.
§Arguments
configurations- The configurations used to configure optionspost_configurations- The configurations used to post-configure optionsvalidations- The validations used to validate options
Trait Implementations§
Source§impl<T: Default + Value + Default> Default for DefaultFactory<T>
impl<T: Default + Value + Default> Default for DefaultFactory<T>
Source§fn default() -> DefaultFactory<T>
fn default() -> DefaultFactory<T>
Returns the “default value” for a type. Read more
Source§impl<T: Value + Default + 'static> From<DefaultFactory<T>> for DefaultMonitor<T>
impl<T: Value + Default + 'static> From<DefaultFactory<T>> for DefaultMonitor<T>
Source§fn from(factory: DefaultFactory<T>) -> Self
fn from(factory: DefaultFactory<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for DefaultFactory<T>
impl<T> !RefUnwindSafe for DefaultFactory<T>
impl<T> !Send for DefaultFactory<T>
impl<T> !Sync for DefaultFactory<T>
impl<T> Unpin for DefaultFactory<T>
impl<T> UnsafeUnpin for DefaultFactory<T>
impl<T> !UnwindSafe for DefaultFactory<T>
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