Struct distill_daemon::AssetDaemon[][src]

pub struct AssetDaemon {
    pub db_dir: PathBuf,
    pub address: SocketAddr,
    pub importers: ImporterMap,
    pub importer_contexts: Vec<Box<dyn ImporterContext>>,
    pub asset_dirs: Vec<PathBuf>,
}

Fields

db_dir: PathBufaddress: SocketAddrimporters: ImporterMapimporter_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]

pub fn add_importer<B>(&mut self, ext: &str, importer: B) where
    B: BoxedImporter + 'static, 
[src]

pub fn with_importers<B, I>(self, importers: I) -> Self where
    B: BoxedImporter + 'static,
    I: IntoIterator<Item = (&'static str, B)>, 
[src]

pub fn with_importers_boxed<I>(self, importers: I) -> Self where
    I: IntoIterator<Item = (&'static str, Box<dyn BoxedImporter + 'static>)>, 
[src]

pub fn add_importers<B, I>(&mut self, importers: I) where
    B: BoxedImporter + 'static,
    I: IntoIterator<Item = (&'static str, B)>, 
[src]

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.