Struct jupiter::idb::idb_yaml_set_loader::IdbYamlSetLoader
source · pub struct IdbYamlSetLoader { /* private fields */ }
Expand description
Represents the global loader instance.
Implementations§
Trait Implementations§
source§impl Display for IdbYamlSetLoader
impl Display for IdbYamlSetLoader
source§impl Loader for IdbYamlSetLoader
impl Loader for IdbYamlSetLoader
source§fn file_changed<'life0, 'life1, 'async_trait>(
&'life0 self,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn file_changed<'life0, 'life1, 'async_trait>(
&'life0 self,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Invoked if either the loader metadata or the file itself has changed.
source§fn platform(&self) -> &Arc<Platform>
fn platform(&self) -> &Arc<Platform>
Provides the platform for which this loader was registered.
source§fn file_deleted<'life0, 'life1, 'async_trait>(
&'life0 self,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn file_deleted<'life0, 'life1, 'async_trait>(
&'life0 self,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Invoked if the underlying file or the loader itself was deleted. Read more
source§fn update_table<'life0, 'life1, 'async_trait>(
&'life0 self,
doc: Doc,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_table<'life0, 'life1, 'async_trait>(
&'life0 self,
doc: Doc,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Can be invoked by loaders which store data in InfoGraphDB to update a table
with the indices as defined by the metadata YAML.
source§fn table_name<'a>(&self, loader_info: &'a LoaderInfo) -> Result<&'a str>
fn table_name<'a>(&self, loader_info: &'a LoaderInfo) -> Result<&'a str>
Extracts the table name from the given metadata. Read more
Auto Trait Implementations§
impl Freeze for IdbYamlSetLoader
impl RefUnwindSafe for IdbYamlSetLoader
impl Send for IdbYamlSetLoader
impl Sync for IdbYamlSetLoader
impl Unpin for IdbYamlSetLoader
impl UnwindSafe for IdbYamlSetLoader
Blanket Implementations§
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more