Skip to main content

BackupExtension

Struct BackupExtension 

Source
pub struct BackupExtension { /* private fields */ }
Expand description

The Extension entry point for data retention, backup & disaster recovery.

Implementations§

Source§

impl BackupExtension

Source

pub fn new(pool: ConnPool) -> Self

Source

pub fn pool(&self) -> &ConnPool

Trait Implementations§

Source§

impl Default for BackupExtension

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Extension for BackupExtension

Source§

fn manifest(&self) -> Manifest

Identity and capabilities — who you are, what you do.
Source§

fn routes(&self, _ctx: &AppContext) -> Option<Router>

Your HTTP routes. The server mounts these under the appropriate prefix.
Source§

fn migrations(&self) -> Vec<Migration>

Your database tables. The migration runner applies these at startup, tracked in _schema_registry.
Source§

fn on_start(&self, _ctx: &AppContext) -> ExtResult<()>

Called once after migrations and before routes are served.
Source§

fn health(&self) -> Health

Health check — aggregated into /health/deep.
Source§

fn metrics(&self) -> Vec<Metric>

Metrics — collected by the telemetry system.
Source§

fn scheduled_tasks(&self) -> Vec<ScheduledTask>

Periodic tasks (cron-like).
Source§

fn mcp_tools(&self) -> Vec<McpToolDef>

MCP tool definitions exposed by this extension. Read more
Source§

fn on_shutdown(&self) -> Result<(), Box<dyn Error + Sync + Send>>

Called on graceful shutdown.
Source§

fn subscriptions(&self) -> Vec<EventFilter>

Domain events this extension subscribes to.
Source§

fn on_event(&self, event: &DomainEvent)

Called when a subscribed domain event fires.
Source§

fn on_scheduled_task(&self, task_name: &str)

Called when a scheduled task fires (cron match).
Source§

fn on_config_change( &self, key: &str, value: &Value, ) -> Result<(), Box<dyn Error + Sync + Send>>

Called when configuration changes at runtime.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,