pub struct StateDef {
pub type_id: TypeId,
pub prewarm: bool,
pub init_fn: fn() -> Pin<Box<dyn Future<Output = Arc<dyn Any + Send + Sync>> + Send>>,
}Fields§
§type_id: TypeId§prewarm: bool§init_fn: fn() -> Pin<Box<dyn Future<Output = Arc<dyn Any + Send + Sync>> + Send>>Auto Trait Implementations§
impl Freeze for StateDef
impl RefUnwindSafe for StateDef
impl Send for StateDef
impl Sync for StateDef
impl Unpin for StateDef
impl UnwindSafe for StateDef
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