pub struct App { /* private fields */ }Implementations§
Source§impl App
impl App
pub fn new(db: Db) -> Self
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
Auto Trait Implementations§
impl !Freeze for App
impl !RefUnwindSafe for App
impl !UnwindSafe 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