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>>(mut self: Self, path: P) -> Self
[src]
pub fn with_address(mut self: Self, address: SocketAddr) -> Self
[src]
pub fn with_importer<B>(mut self: 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>(mut self: 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(
mut self: Self,
context: Box<dyn ImporterContext>
) -> Self
[src]
mut self: Self,
context: Box<dyn ImporterContext>
) -> Self
pub fn with_importer_contexts<I>(mut self: Self, contexts: I) -> Self where
I: IntoIterator<Item = Box<dyn ImporterContext>>,
[src]
I: IntoIterator<Item = Box<dyn ImporterContext>>,
pub fn with_asset_dirs(mut self: 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
[src]
impl Send for AssetDaemon
[src]
impl Sync for AssetDaemon
[src]
impl Unpin for AssetDaemon
[src]
impl !UnwindSafe for AssetDaemon
[src]
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>,