pub enum Router {
Websocket(Response<Full<Bytes>>, CablePath),
Static(Response<Full<Bytes>>),
Debug,
}Expand description
HTTP router for a caBLE WebSocket tunnel server.
Variants§
Websocket(Response<Full<Bytes>>, CablePath)
The web server should handle the request as a caBLE WebSocket connection.
Static(Response<Full<Bytes>>)
The web server should return a static response. This may be an error message.
Debug
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Router
impl !RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl !UnwindSafe for Router
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