pub struct DisconnectingPayload {
pub reason: DisconnectReason,
}Expand description
Service -> Controller: Notification before disconnecting.
Fields§
§reason: DisconnectReasonImplementations§
Source§impl DisconnectingPayload
impl DisconnectingPayload
Sourcepub fn new(reason: DisconnectReason) -> Self
pub fn new(reason: DisconnectReason) -> Self
Create a DisconnectingPayload with the given reason.
Trait Implementations§
Source§impl Clone for DisconnectingPayload
impl Clone for DisconnectingPayload
Source§fn clone(&self) -> DisconnectingPayload
fn clone(&self) -> DisconnectingPayload
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 DisconnectingPayload
impl Debug for DisconnectingPayload
Source§impl<'de> Deserialize<'de> for DisconnectingPayload
impl<'de> Deserialize<'de> for DisconnectingPayload
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 DisconnectingPayload
Source§impl PartialEq for DisconnectingPayload
impl PartialEq for DisconnectingPayload
Source§impl Serialize for DisconnectingPayload
impl Serialize for DisconnectingPayload
impl StructuralPartialEq for DisconnectingPayload
Source§impl WireValidate for DisconnectingPayload
impl WireValidate for DisconnectingPayload
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 DisconnectingPayload
impl RefUnwindSafe for DisconnectingPayload
impl Send for DisconnectingPayload
impl Sync for DisconnectingPayload
impl Unpin for DisconnectingPayload
impl UnsafeUnpin for DisconnectingPayload
impl UnwindSafe for DisconnectingPayload
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.