Struct jupiter::pyrun::pyrun_kernel_loader::KernelLoader
source · pub struct KernelLoader { /* private fields */ }
Expand description
Represents the global loader instance to be registered.
Implementations§
Trait Implementations§
source§impl Display for KernelLoader
impl Display for KernelLoader
source§impl Loader for KernelLoader
impl Loader for KernelLoader
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 KernelLoader
impl RefUnwindSafe for KernelLoader
impl Send for KernelLoader
impl Sync for KernelLoader
impl Unpin for KernelLoader
impl UnwindSafe for KernelLoader
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