pub struct Status<'a, T> { /* private fields */ }Expand description
Accessor for the public system-status endpoints.
Obtain one via OkxClient::status.
Implementations§
Source§impl<'a, T: Transport> Status<'a, T>
impl<'a, T: Transport> Status<'a, T>
Sourcepub async fn get_status(
&self,
request: &StatusRequest<'_>,
) -> Result<Vec<StatusItem>, Error>
pub async fn get_status( &self, request: &StatusRequest<'_>, ) -> Result<Vec<StatusItem>, Error>
Retrieve system maintenance status.
GET /api/v5/system/status. Public (unauthenticated). Pass
state to filter by a specific maintenance state; omit it to receive
scheduled, ongoing, and pre_open events by default.
§Errors
Returns RestError::Okx on a non-zero OKX code, or
RestError::Transport/RestError::Decode on transport/parsing failure.
Auto Trait Implementations§
impl<'a, T> Freeze for Status<'a, T>
impl<'a, T> RefUnwindSafe for Status<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Status<'a, T>where
T: Sync,
impl<'a, T> Sync for Status<'a, T>where
T: Sync,
impl<'a, T> Unpin for Status<'a, T>
impl<'a, T> UnsafeUnpin for Status<'a, T>
impl<'a, T> UnwindSafe for Status<'a, T>where
T: RefUnwindSafe,
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