pub struct SocketType { /* private fields */ }Expand description
A fully assembled, type-erased HTTP route ready to be registered on a Server.
This is the final product of every builder chain. Pass it to Server::mechanism
to mount it. Internally stores the HTTP method, the path pattern, and a
reference-counted async handler closure — cloning a SocketType is cheap
(just an Arc clone of the handler).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SocketType
impl !RefUnwindSafe for SocketType
impl Send for SocketType
impl Sync for SocketType
impl Unpin for SocketType
impl UnsafeUnpin for SocketType
impl !UnwindSafe for SocketType
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