pub enum PageBody {
Rust(fn(Arc<RequestContext>) -> Pin<Box<dyn Future<Output = Result<Node, Error>> + Send>>),
Html(&'static str),
}Variants§
Rust(fn(Arc<RequestContext>) -> Pin<Box<dyn Future<Output = Result<Node, Error>> + Send>>)
Html(&'static str)
Contents of page.html.
Auto Trait Implementations§
impl Forget for PageBody
impl Freeze for PageBody
impl Move for PageBody
impl RefUnwindSafe for PageBody
impl Send for PageBody
impl Sync for PageBody
impl Unpin for PageBody
impl UnsafeUnpin for PageBody
impl UnwindSafe for PageBody
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