pub struct ModuleInfo {
pub module_def: ModuleDef,
pub owner_identity: Identity,
pub database_identity: Identity,
pub module_hash: Hash,
pub log_tx: Sender<Bytes>,
pub subscriptions: ModuleSubscriptions,
pub metrics: ModuleMetrics,
}Expand description
Information about a running module.
Fields§
§module_def: ModuleDefThe definition of the module. Loaded by loading the module’s program from the system tables, extracting its definition, and validating.
owner_identity: IdentityThe identity of the module.
database_identity: IdentityThe identity of the database.
module_hash: HashThe hash of the module.
log_tx: Sender<Bytes>Allows subscribing to module logs.
subscriptions: ModuleSubscriptionsSubscriptions to this module.
metrics: ModuleMetricsMetrics handles for this module.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleInfo
impl !RefUnwindSafe for ModuleInfo
impl Send for ModuleInfo
impl Sync for ModuleInfo
impl Unpin for ModuleInfo
impl !UnwindSafe for ModuleInfo
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