pub struct App { /* private fields */ }Implementations§
Source§impl App
impl App
pub fn new(db: Db) -> Self
pub fn step<A: Area>(self, step: impl PipelineStep) -> Self
Sourcepub fn step_all(self, step: impl PipelineStep) -> Self
pub fn step_all(self, step: impl PipelineStep) -> Self
Runs on every routed request before the area’s steps, and on every answer, a 404 too.
Sourcepub fn gates(self, gates: Gates) -> Self
pub fn gates(self, gates: Gates) -> Self
Keeps the menus given so far, which live beside the gates.
Sourcepub fn membership(self, members: impl AreaMembers) -> Self
pub fn membership(self, members: impl AreaMembers) -> Self
Where grants, bearer tokens and lock notices are read.
Sourcepub fn serving(self, configure: impl FnOnce(Serving) -> Serving) -> Self
pub fn serving(self, configure: impl FnOnce(Serving) -> Serving) -> Self
Changes what was set before, so the process and a test server each add their own.
pub fn screens(self, screens: Screens) -> Self
pub fn area<A: Area>( self, module: &'static str, define: impl FnOnce(&mut Routes<A>), ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for App
impl !RefUnwindSafe for App
impl !UnwindSafe for App
impl Forget for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
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