pub enum Reason {
WrongCode,
Refused,
Busy,
Failed,
Declined,
HoldsSpace,
}Expand description
Why a side ended a connection, as [0, reason] says.
Variants§
WrongCode
The pairing code did not match.
Refused
The peer is no replica that this replica syncs with.
Busy
The replica is syncing with another.
Failed
Something went wrong on the side that ended.
Declined
The person who invites declined the one who asked.
HoldsSpace
The joiner’s library holds the space that it was invited to already.
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Forget for Reason
impl Freeze for Reason
impl Move for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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