pub enum TestStreamMessage {
Ping(String),
Pong(Option<String>, String),
Data(Vec<u8>),
Eof,
}
Expand description
A test message for framed stream testing purposes.
Variants§
Trait Implementations§
Source§impl Clone for TestStreamMessage
impl Clone for TestStreamMessage
Source§fn clone(&self) -> TestStreamMessage
fn clone(&self) -> TestStreamMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 TestStreamMessage
impl Debug for TestStreamMessage
Source§impl<'de> Deserialize<'de> for TestStreamMessage
impl<'de> Deserialize<'de> for TestStreamMessage
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
Source§impl Display for TestStreamMessage
impl Display for TestStreamMessage
Source§impl Ord for TestStreamMessage
impl Ord for TestStreamMessage
Source§fn cmp(&self, other: &TestStreamMessage) -> Ordering
fn cmp(&self, other: &TestStreamMessage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TestStreamMessage
impl PartialEq for TestStreamMessage
Source§impl PartialOrd for TestStreamMessage
impl PartialOrd for TestStreamMessage
Source§impl Random for TestStreamMessage
impl Random for TestStreamMessage
fn random() -> TestStreamMessage
Source§impl Serialize for TestStreamMessage
impl Serialize for TestStreamMessage
impl Eq for TestStreamMessage
impl StructuralPartialEq for TestStreamMessage
Auto Trait Implementations§
impl Freeze for TestStreamMessage
impl RefUnwindSafe for TestStreamMessage
impl Send for TestStreamMessage
impl Sync for TestStreamMessage
impl Unpin for TestStreamMessage
impl UnwindSafe for TestStreamMessage
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