Struct distill_daemon::AssetDaemon [−][src]
Fields
db_dir: PathBuf
address: SocketAddr
importers: ImporterMap
importer_contexts: Vec<Box<dyn ImporterContext>>
asset_dirs: Vec<PathBuf>
Implementations
impl AssetDaemon
[src]
pub fn with_db_path<P: AsRef<Path>>(self, path: P) -> Self
[src]
pub fn with_address(self, address: SocketAddr) -> Self
[src]
pub fn with_importer<B>(self, ext: &str, importer: B) -> Self where
B: BoxedImporter + 'static,
[src]
B: BoxedImporter + 'static,
pub fn add_importer<B>(&mut self, ext: &str, importer: B) where
B: BoxedImporter + 'static,
[src]
B: BoxedImporter + 'static,
pub fn with_importers<B, I>(self, importers: I) -> Self where
B: BoxedImporter + 'static,
I: IntoIterator<Item = (&'static str, B)>,
[src]
B: BoxedImporter + 'static,
I: IntoIterator<Item = (&'static str, B)>,
pub fn with_importers_boxed<I>(self, importers: I) -> Self where
I: IntoIterator<Item = (&'static str, Box<dyn BoxedImporter + 'static>)>,
[src]
I: IntoIterator<Item = (&'static str, Box<dyn BoxedImporter + 'static>)>,
pub fn add_importers<B, I>(&mut self, importers: I) where
B: BoxedImporter + 'static,
I: IntoIterator<Item = (&'static str, B)>,
[src]
B: BoxedImporter + 'static,
I: IntoIterator<Item = (&'static str, B)>,
pub fn with_importer_context(self, context: Box<dyn ImporterContext>) -> Self
[src]
pub fn with_importer_contexts<I>(self, contexts: I) -> Self where
I: IntoIterator<Item = Box<dyn ImporterContext>>,
[src]
I: IntoIterator<Item = Box<dyn ImporterContext>>,
pub fn with_asset_dirs(self, dirs: Vec<PathBuf>) -> Self
[src]
pub fn run(self) -> (JoinHandle<()>, Sender<bool>)
[src]
Trait Implementations
impl Default for AssetDaemon
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AssetDaemon
impl Send for AssetDaemon
impl Sync for AssetDaemon
impl Unpin for AssetDaemon
impl !UnwindSafe for AssetDaemon
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>,