pub struct DatabaseInstanceContext {
pub database_instance_id: u64,
pub database_id: u64,
pub identity: Identity,
pub address: Address,
pub logger: Arc<DatabaseLogger>,
pub relational_db: Arc<RelationalDB>,
pub publisher_address: Option<Address>,
}Fields§
§database_instance_id: u64§database_id: u64§identity: Identity§address: Address§logger: Arc<DatabaseLogger>§relational_db: Arc<RelationalDB>§publisher_address: Option<Address>Implementations§
source§impl DatabaseInstanceContext
impl DatabaseInstanceContext
pub fn from_database( config: Config, 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( config: Config, database_instance_id: u64, database_id: u64, identity: Identity, address: Address, db_path: PathBuf, log_path: &Path, publisher_address: Option<Address> ) -> Arc<Self>
sourcepub fn message_log_size_on_disk(&self) -> Result<u64, DBError>
pub fn message_log_size_on_disk(&self) -> Result<u64, DBError>
The number of bytes on disk occupied by the MessageLog.
sourcepub fn object_db_size_on_disk(&self) -> Result<u64, DBError>
pub fn object_db_size_on_disk(&self) -> Result<u64, DBError>
The number of bytes on disk occupied by the ObjectDB.
sourcepub fn log_file_size(&self) -> Result<u64, DBError>
pub fn log_file_size(&self) -> Result<u64, DBError>
The size of the log file.
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 F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§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> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Upcastable for T
impl<T> Upcastable for T
§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
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn