#[non_exhaustive]pub struct SessionLeaveResult {
pub command_id: String,
pub status: CommandAckStatus,
}Expand description
The admission-only session/leave result.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.command_id: StringThe leave command’s id.
status: CommandAckStatusThe admission status, accepted once the leave is admitted. The final
result arrives later as session/leaveCompleted. Sending the same leave
command again returns accepted and re-pushes the recorded result if
there is one, from the host that ran the leave (for as long as it runs,
even after the release) or from a host that has the session loaded
(after a host crash, abandoned among them). Any other host treats it
as a fresh leave: a durable host that has not loaded the session refuses
it with sessionNotLoaded until it is resumed there.
Trait Implementations§
Source§impl Clone for SessionLeaveResult
impl Clone for SessionLeaveResult
Source§impl Debug for SessionLeaveResult
impl Debug for SessionLeaveResult
Source§impl<'de> Deserialize<'de> for SessionLeaveResult
impl<'de> Deserialize<'de> for SessionLeaveResult
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 SessionLeaveResult
Source§impl PartialEq for SessionLeaveResult
impl PartialEq for SessionLeaveResult
Source§impl Serialize for SessionLeaveResult
impl Serialize for SessionLeaveResult
impl StructuralPartialEq for SessionLeaveResult
Auto Trait Implementations§
impl Freeze for SessionLeaveResult
impl RefUnwindSafe for SessionLeaveResult
impl Send for SessionLeaveResult
impl Sync for SessionLeaveResult
impl Unpin for SessionLeaveResult
impl UnsafeUnpin for SessionLeaveResult
impl UnwindSafe for SessionLeaveResult
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