proa_framework_axum 0.4.0

Axum and Tokio adapter for Proa SSR applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Proa Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use super::metadata::Metadata;

pub type LayoutRef = &'static dyn Layout;

/// Metadata boundary shared by a branch of the route tree.
///
/// Page chrome belongs in the page's render tree (usually a shared
/// `RootDocument` component), where it works uniformly for sync, buffered
/// async, and streaming routes. A route layout contributes only cascading
/// metadata such as title templates and descriptions.
pub trait Layout: Metadata + Send + Sync + 'static {}