pub struct ServerBusy {
pub busy: Option<bool>,
pub expires: Option<i64>,
}
Fields§
§busy: Option<bool>
True if the server is marked as busy (under high load)
expires: Option<i64>
timestamp - number of seconds since Jan 1, 1970 UTC.
Implementations§
Source§impl ServerBusy
impl ServerBusy
pub fn new() -> ServerBusy
Trait Implementations§
Source§impl Clone for ServerBusy
impl Clone for ServerBusy
Source§fn clone(&self) -> ServerBusy
fn clone(&self) -> ServerBusy
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServerBusy
impl Debug for ServerBusy
Source§impl Default for ServerBusy
impl Default for ServerBusy
Source§fn default() -> ServerBusy
fn default() -> ServerBusy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerBusy
impl<'de> Deserialize<'de> for ServerBusy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ServerBusy
impl PartialEq for ServerBusy
Source§impl Serialize for ServerBusy
impl Serialize for ServerBusy
impl StructuralPartialEq for ServerBusy
Auto Trait Implementations§
impl Freeze for ServerBusy
impl RefUnwindSafe for ServerBusy
impl Send for ServerBusy
impl Sync for ServerBusy
impl Unpin for ServerBusy
impl UnwindSafe for ServerBusy
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