//! FutureBox 🔄 - 非同期処理基盤 // Nyashの箱システムによる非同期処理の基盤を提供します。 // 参考: 既存Boxの設計思想 use std::future::Future; use std::pin::Pin; pub struct FutureBox { pub future: Pin + Send>>, } impl FutureBox { pub fn new(fut: F) -> Self where F: Future + Send + 'static, { FutureBox { future: Box::pin(fut), } } }