Enum magic_wormhole::Mood
source · pub enum Mood {
Happy,
Lonely,
Errory,
Scared,
Unwelcome,
}Expand description
The close command accepts an optional “mood” string: this allows clients to tell the server (in general terms) about their experiences with the wormhole interaction. The server records the mood in its “usage” record, so the server operator can get a sense of how many connections are succeeding and failing. The moods currently recognized by the Mailbox server are:
Variants§
Happy
The PAKE key-establishment worked, and the client saw at least one valid encrypted message from its peer
Lonely
The client gave up without hearing anything from its peer
Errory
The client encountered some other error: protocol problem or internal error
Scared
The client saw an invalid encrypted message from its peer, indicating that either the wormhole code was typed in wrong, or an attacker tried (and failed) to guess the code
Unwelcome
Clients are not welcome on the server right now
Trait Implementations§
source§impl<'de> Deserialize<'de> for Mood
impl<'de> Deserialize<'de> for Mood
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>,
source§impl PartialEq for Mood
impl PartialEq for Mood
impl Copy for Mood
impl StructuralPartialEq for Mood
Auto Trait Implementations§
impl Freeze for Mood
impl RefUnwindSafe for Mood
impl Send for Mood
impl Sync for Mood
impl Unpin for Mood
impl UnwindSafe for Mood
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)