pub struct SlotDef {
pub name: &'static str,
pub render: Option<fn(Arc<RequestContext>) -> Pin<Box<dyn Future<Output = Result<Node, Error>> + Send>>>,
}Fields§
§name: &'static str§render: Option<fn(Arc<RequestContext>) -> Pin<Box<dyn Future<Output = Result<Node, Error>> + Send>>>The matching slot page or its default.rs.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SlotDef
impl Freeze for SlotDef
impl Move for SlotDef
impl RefUnwindSafe for SlotDef
impl Send for SlotDef
impl Sync for SlotDef
impl Unpin for SlotDef
impl UnsafeUnpin for SlotDef
impl UnwindSafe for SlotDef
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