pub struct WebFramework { /* private fields */ }
Expand description
Web Framework - フルスタックWebフレームワーク
Implementations§
Source§impl WebFramework
impl WebFramework
pub fn new(config: WebFrameworkConfigIR) -> Result<Self>
Sourcepub async fn handle_request(&self, path: &str) -> Result<String>
pub async fn handle_request(&self, path: &str) -> Result<String>
HTTPリクエストを処理
Sourcepub async fn register_component(&self, component: ComponentIR) -> Result<()>
pub async fn register_component(&self, component: ComponentIR) -> Result<()>
コンポーネントを登録
パスによるナビゲーション
Sourcepub async fn get_current_route(&self) -> Option<RouteIR>
pub async fn get_current_route(&self) -> Option<RouteIR>
現在のルートを取得
Sourcepub async fn get_route_table(&self) -> RouteTableIR
pub async fn get_route_table(&self) -> RouteTableIR
ルートテーブルを取得
Sourcepub fn get_config(&self) -> &WebFrameworkConfigIR
pub fn get_config(&self) -> &WebFrameworkConfigIR
設定を取得
Auto Trait Implementations§
impl Freeze for WebFramework
impl !RefUnwindSafe for WebFramework
impl Send for WebFramework
impl Sync for WebFramework
impl Unpin for WebFramework
impl !UnwindSafe for WebFramework
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