pub enum ServerMessages {
Single(ServerMessage),
Batch(Vec<ServerMessage>),
}
Variants§
Single(ServerMessage)
Batch(Vec<ServerMessage>)
Implementations§
Trait Implementations§
Source§impl Clone for ServerMessages
impl Clone for ServerMessages
Source§fn clone(&self) -> ServerMessages
fn clone(&self) -> ServerMessages
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 ServerMessages
impl Debug for ServerMessages
Source§impl<'de> Deserialize<'de> for ServerMessages
impl<'de> Deserialize<'de> for ServerMessages
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 ServerMessages
impl Display for ServerMessages
Source§impl From<ServerMessage> for ServerMessages
impl From<ServerMessage> for ServerMessages
Source§fn from(value: ServerMessage) -> Self
fn from(value: ServerMessage) -> Self
Converts to this type from the input type.
Source§impl From<Vec<ServerMessage>> for ServerMessages
impl From<Vec<ServerMessage>> for ServerMessages
Source§fn from(value: Vec<ServerMessage>) -> Self
fn from(value: Vec<ServerMessage>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServerMessages
impl RefUnwindSafe for ServerMessages
impl Send for ServerMessages
impl Sync for ServerMessages
impl Unpin for ServerMessages
impl UnwindSafe for ServerMessages
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