Struct jortestkit::load::Status
source · pub struct Status {
duration: Duration,
response_status: RequestStatus,
id: Id,
}
Fields§
§duration: Duration
§response_status: RequestStatus
§id: Id
Implementations§
source§impl Status
impl Status
pub fn is_pending(&self) -> bool
pub fn id(&self) -> &Id
pub fn status(&self) -> &RequestStatus
pub fn duration(&self) -> &Duration
pub fn new_success(duration: Duration, id: Id) -> Self
pub fn new_pending(duration: Duration, id: Id) -> Self
pub fn new_failure(duration: Duration, id: Id, messsage: String) -> Self
Trait Implementations§
source§impl Into<RequestStatus> for Status
impl Into<RequestStatus> for Status
source§fn into(self) -> RequestStatus
fn into(self) -> RequestStatus
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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