1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01:00

update doc strings

This commit is contained in:
Nikolay Kim 2018-04-13 19:14:14 -07:00
parent 5140fea8d1
commit a5b5ff0894

View File

@ -559,6 +559,7 @@ enum InternalErrorType {
} }
impl<T> InternalError<T> { impl<T> InternalError<T> {
/// Create `InternalError` instance
pub fn new(cause: T, status: StatusCode) -> Self { pub fn new(cause: T, status: StatusCode) -> Self {
InternalError { InternalError {
cause, cause,
@ -567,6 +568,7 @@ impl<T> InternalError<T> {
} }
} }
/// Create `InternalError` with predefined `HttpResponse`
pub fn from_response(cause: T, response: HttpResponse) -> Self { pub fn from_response(cause: T, response: HttpResponse) -> Self {
InternalError { InternalError {
cause, cause,