[−][src]Trait webterm::WebTermExt
Trait to extend an actix_web::App by serving a web terminal.
Required methods
fn webterm_socket<F>(self, endpoint: &str, handler: F) -> Self where
F: Clone + Fn(&HttpRequest) -> Command + 'static,
F: Clone + Fn(&HttpRequest) -> Command + 'static,
Serve the websocket for the webterm
fn webterm_ui(
self,
endpoint: &str,
webterm_socket_endpoint: &str,
static_path: &str
) -> Self
self,
endpoint: &str,
webterm_socket_endpoint: &str,
static_path: &str
) -> Self
Implementations on Foreign Types
impl<T, B> WebTermExt for App<T, B> where
B: MessageBody,
T: NewService<Config = (), Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error, InitError = ()>,
[src]
B: MessageBody,
T: NewService<Config = (), Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error, InitError = ()>,
fn webterm_socket<F>(self, endpoint: &str, handler: F) -> Self where
F: Clone + Fn(&HttpRequest) -> Command + 'static,
[src]
F: Clone + Fn(&HttpRequest) -> Command + 'static,
fn webterm_ui(
self,
endpoint: &str,
webterm_socket_endpoint: &str,
static_path: &str
) -> Self
[src]
self,
endpoint: &str,
webterm_socket_endpoint: &str,
static_path: &str
) -> Self