pub enum DoctorVersion {
Said {
text: String,
},
Silent,
Unreadable,
Late,
}Expand description
What a present program said when asked its version. Only the first arm carries text; the other three are facts about how it did not answer, and none of them makes the program absent.
Variants§
Said
Silent
It started, wrote nothing, and exited.
Unreadable
Its first line was not text.
Late
It had not written a line when the deadline passed.
Trait Implementations§
Source§impl Clone for DoctorVersion
impl Clone for DoctorVersion
Source§impl Debug for DoctorVersion
impl Debug for DoctorVersion
Source§impl<'de> Deserialize<'de> for DoctorVersion
impl<'de> Deserialize<'de> for DoctorVersion
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 DoctorVersion
Source§impl PartialEq for DoctorVersion
impl PartialEq for DoctorVersion
Source§impl Serialize for DoctorVersion
impl Serialize for DoctorVersion
impl StructuralPartialEq for DoctorVersion
Auto Trait Implementations§
impl Freeze for DoctorVersion
impl RefUnwindSafe for DoctorVersion
impl Send for DoctorVersion
impl Sync for DoctorVersion
impl Unpin for DoctorVersion
impl UnsafeUnpin for DoctorVersion
impl UnwindSafe for DoctorVersion
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