pub struct ServerRestartingPayload {
pub reason: String,
}Expand description
Payload for server restarting notification.
Sent by the controller during graceful shutdown to notify connected services that the server is restarting. Services should expect the connection to close and reconnect automatically.
Fields§
§reason: StringHuman-readable reason for the restart.
Trait Implementations§
Source§impl Clone for ServerRestartingPayload
impl Clone for ServerRestartingPayload
Source§fn clone(&self) -> ServerRestartingPayload
fn clone(&self) -> ServerRestartingPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerRestartingPayload
impl Debug for ServerRestartingPayload
Source§impl<'de> Deserialize<'de> for ServerRestartingPayload
impl<'de> Deserialize<'de> for ServerRestartingPayload
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
impl Eq for ServerRestartingPayload
Source§impl PartialEq for ServerRestartingPayload
impl PartialEq for ServerRestartingPayload
Source§impl Serialize for ServerRestartingPayload
impl Serialize for ServerRestartingPayload
impl StructuralPartialEq for ServerRestartingPayload
Source§impl WireValidate for ServerRestartingPayload
impl WireValidate for ServerRestartingPayload
Source§fn wire_validate(&self) -> Result<(), WireValidationError>
fn wire_validate(&self) -> Result<(), WireValidationError>
Validate that all fields are within wire protocol size limits.
Auto Trait Implementations§
impl Freeze for ServerRestartingPayload
impl RefUnwindSafe for ServerRestartingPayload
impl Send for ServerRestartingPayload
impl Sync for ServerRestartingPayload
impl Unpin for ServerRestartingPayload
impl UnsafeUnpin for ServerRestartingPayload
impl UnwindSafe for ServerRestartingPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.