pub enum ValidMessage {
Result {
id: Uuid,
jsonrpc: String,
result: Box<SnapcastResult>,
},
Notification {
jsonrpc: String,
method: Box<Notification>,
},
}
Expand description
A message received from the Snapcast server that is not an error
Variants§
Result
A message that is in response to a request
Fields
§
result: Box<SnapcastResult>
The result of the request
Notification
A notification from the server
Fields
§
method: Box<Notification>
The notification data itself as a tagged enum
Trait Implementations§
Source§impl Clone for ValidMessage
impl Clone for ValidMessage
Source§fn clone(&self) -> ValidMessage
fn clone(&self) -> ValidMessage
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 ValidMessage
impl Debug for ValidMessage
Source§impl PartialEq for ValidMessage
impl PartialEq for ValidMessage
Source§impl Serialize for ValidMessage
impl Serialize for ValidMessage
Source§impl TryFrom<Message> for ValidMessage
impl TryFrom<Message> for ValidMessage
impl StructuralPartialEq for ValidMessage
Auto Trait Implementations§
impl Freeze for ValidMessage
impl RefUnwindSafe for ValidMessage
impl Send for ValidMessage
impl Sync for ValidMessage
impl Unpin for ValidMessage
impl UnwindSafe for ValidMessage
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