pub struct Visitor(/* private fields */);Expand description
Another area cannot resolve it:
ⓘ
struct Console;
impl Area for Console {
const NAME: &'static str = "console";
const PREFIX: &'static str = "/console";
const SIGN_IN: &'static str = "/";
type Principal = Visitor;
}
async fn greet(_visitor: Visitor) -> sofie_core::Result<()> { Ok(()) }
fn routes(routes: &mut Routes<Console>) { routes.get("/", greet); }Trait Implementations§
Source§impl AreaPrincipal for Visitor
No one signs in as one, so its Principal is never found.
impl AreaPrincipal for Visitor
No one signs in as one, so its Principal is never found.
Auto Trait Implementations§
impl Freeze for Visitor
impl RefUnwindSafe for Visitor
impl Send for Visitor
impl Sync for Visitor
impl Unpin for Visitor
impl UnsafeUnpin for Visitor
impl UnwindSafe for Visitor
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