pub struct At<W> {
pub who: W,
pub path: Arc<str>,
}Expand description
A viewer, somewhere.
Who is asking and where they are are separate facts, and this is the pair. It is generic over
the identity half because both sources of one need a route: the document handler wraps the
actor a provider verified with the path of the request that rendered it, and beck test wraps
the name a test wrote with the route it wrote beside it. The socket’s equivalent is
session::Subscriber, which is this pair with a route that can move — an HTTP request is one
route by construction and a subscription is not.
Fields§
§who: W§path: Arc<str>Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for At<W>where
W: Freeze,
impl<W> RefUnwindSafe for At<W>where
W: RefUnwindSafe,
impl<W> Send for At<W>where
W: Send,
impl<W> Sync for At<W>where
W: Sync,
impl<W> Unpin for At<W>where
W: Unpin,
impl<W> UnwindSafe for At<W>where
W: UnwindSafe,
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