[−][src]Struct lifeguard::settings::Supplier
Specifies a value implementing Supply<Output=T>
that will be used to allocate
new values. If unspecified, T::new()
will be invoked.
Trait Implementations
impl<T, S> OptionSetter<PoolBuilder<T>> for Supplier<S> where
S: Supply<Output = T> + 'static,
T: Recycleable,
[src]
S: Supply<Output = T> + 'static,
T: Recycleable,
pub fn set_option(self, builder: PoolBuilder<T>) -> PoolBuilder<T>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for Supplier<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Supplier<S> where
S: Send,
S: Send,
impl<S> Sync for Supplier<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Supplier<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Supplier<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,