mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
update doc strings
This commit is contained in:
parent
5140fea8d1
commit
a5b5ff0894
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user