pub struct ClientGoodbye {
pub reason: String,
}Expand description
client/goodbye: why the client is closing the connection.
Sent before a graceful close, so the server can tell a restart from a shutdown and whether to
reconnect. reason is one of the values messaging.md defines; an unknown value is carried
verbatim rather than rejected, so a reason this revision does not name still reaches the peer.
Fields§
§reason: StringWhy the client is leaving, for example shutdown, restart or unpaired.
Trait Implementations§
Source§impl Clone for ClientGoodbye
impl Clone for ClientGoodbye
Source§impl Debug for ClientGoodbye
impl Debug for ClientGoodbye
Source§impl<'de> Deserialize<'de> for ClientGoodbye
impl<'de> Deserialize<'de> for ClientGoodbye
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 ClientGoodbye
Source§impl PartialEq for ClientGoodbye
impl PartialEq for ClientGoodbye
Source§impl Serialize for ClientGoodbye
impl Serialize for ClientGoodbye
impl StructuralPartialEq for ClientGoodbye
Auto Trait Implementations§
impl Forget for ClientGoodbye
impl Freeze for ClientGoodbye
impl Move for ClientGoodbye
impl RefUnwindSafe for ClientGoodbye
impl Send for ClientGoodbye
impl Sync for ClientGoodbye
impl Unpin for ClientGoodbye
impl UnsafeUnpin for ClientGoodbye
impl UnwindSafe for ClientGoodbye
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