pub struct CorePlugin;Expand description
Default plugin — all no-ops. Every Database gets this automatically.
Trait Implementations§
Source§impl DatabasePlugin for CorePlugin
impl DatabasePlugin for CorePlugin
fn pre_commit(&self, _ws: &WriteSet, _source: CommitSource) -> Result<()>
fn post_commit(&self, _ws: &WriteSet, _source: CommitSource)
fn on_open(&self) -> Result<()>
fn on_close(&self) -> Result<()>
fn on_ddl(&self, _change: &DdlChange) -> Result<()>
fn on_query(&self, _sql: &str) -> Result<()>
fn post_query(&self, _sql: &str, _duration: Duration, _outcome: &QueryOutcome)
fn health(&self) -> PluginHealth
fn describe(&self) -> Value
fn on_sync_push(&self, _changeset: &mut ChangeSet) -> Result<()>
fn on_sync_pull(&self, _changeset: &mut ChangeSet) -> Result<()>
Auto Trait Implementations§
impl Freeze for CorePlugin
impl RefUnwindSafe for CorePlugin
impl Send for CorePlugin
impl Sync for CorePlugin
impl Unpin for CorePlugin
impl UnsafeUnpin for CorePlugin
impl UnwindSafe for CorePlugin
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> 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