1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-27 18:28:31 +00:00
continuwuity/src/api/router/state.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
333 B
Rust
Raw Normal View History

use std::{ops::Deref, sync::Arc};
use conduit_service::Services;
#[derive(Clone)]
pub struct State {
services: Arc<Services>,
}
impl State {
pub fn new(services: Arc<Services>) -> Self {
Self {
services,
}
}
}
impl Deref for State {
type Target = Arc<Services>;
fn deref(&self) -> &Self::Target { &self.services }
}