pub struct DatabaseInstanceContext {
pub database_instance_id: u64,
pub database_id: u64,
pub trace_log: bool,
pub identity: Identity,
pub address: Address,
pub logger: Arc<Mutex<DatabaseLogger>>,
pub relational_db: Arc<RelationalDB>,
}Fields§
§database_instance_id: u64§database_id: u64§trace_log: bool§identity: Identity§address: Address§logger: Arc<Mutex<DatabaseLogger>>§relational_db: Arc<RelationalDB>Implementations§
source§impl DatabaseInstanceContext
impl DatabaseInstanceContext
pub fn from_database( storage: Storage, database: &Database, instance_id: u64, root_db_path: PathBuf ) -> Arc<Self>
pub fn scheduler_db_path(&self, root_db_path: PathBuf) -> PathBuf
pub fn new( storage: Storage, database_instance_id: u64, database_id: u64, trace_log: bool, identity: Identity, address: Address, db_path: PathBuf, log_path: &Path ) -> Arc<Self>
Trait Implementations§
source§impl Clone for DatabaseInstanceContext
impl Clone for DatabaseInstanceContext
source§fn clone(&self) -> DatabaseInstanceContext
fn clone(&self) -> DatabaseInstanceContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DatabaseInstanceContext
impl Send for DatabaseInstanceContext
impl Sync for DatabaseInstanceContext
impl Unpin for DatabaseInstanceContext
impl !UnwindSafe for DatabaseInstanceContext
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
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>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref