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> {
|
||||
/// Create `InternalError` instance
|
||||
pub fn new(cause: T, status: StatusCode) -> Self {
|
||||
InternalError {
|
||||
cause,
|
||||
@ -567,6 +568,7 @@ impl<T> InternalError<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Create `InternalError` with predefined `HttpResponse`
|
||||
pub fn from_response(cause: T, response: HttpResponse) -> Self {
|
||||
InternalError {
|
||||
cause,
|
||||
|
Loading…
Reference in New Issue
Block a user