pub struct CustomExtensions(/* private fields */);
Implementations§
source§impl CustomExtensions
impl CustomExtensions
pub fn empty() -> Self
sourcepub fn insert_without_data_or_config_dir(
&mut self,
name: impl Into<String>,
extension: impl Fn(&mut Extensions) -> RetSyncFut<'_, Result<(), String>> + Send + Sync + 'static,
)
pub fn insert_without_data_or_config_dir( &mut self, name: impl Into<String>, extension: impl Fn(&mut Extensions) -> RetSyncFut<'_, Result<(), String>> + Send + Sync + 'static, )
Same as Self::insert_without_data
, but without access to the config dir
(for usage with other extensions in Mölla).
sourcepub fn insert_without_data(
&mut self,
name: impl Into<String>,
extension: impl Fn(&mut Extensions, PathBuf) -> RetSyncFut<'_, Result<(), String>> + Send + Sync + 'static,
)
pub fn insert_without_data( &mut self, name: impl Into<String>, extension: impl Fn(&mut Extensions, PathBuf) -> RetSyncFut<'_, Result<(), String>> + Send + Sync + 'static, )
Same as Self::insert
, but without getting any config data specified after the extension
name.
pub fn insert<T: DeserializeOwned + Sync + Send + 'static>( &mut self, name: impl Into<String>, extension: impl Fn(&mut Extensions, T, PathBuf) -> RetSyncFut<'_, Result<(), String>> + Send + Sync + 'static, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CustomExtensions
impl !RefUnwindSafe for CustomExtensions
impl !Send for CustomExtensions
impl !Sync for CustomExtensions
impl Unpin for CustomExtensions
impl !UnwindSafe for CustomExtensions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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