pub enum ClientJsonMessage {
Subscribe(Subscribe),
Unsubscribe(Unsubscribe),
Advertise(ClientAdvertise),
Unadvertise(ClientUnadvertise),
GetParameters(GetParameters),
SetParameters(SetParameters),
SubscribeParameterUpdates(SubscribeParameterUpdates),
UnsubscribeParameterUpdates(UnsubscribeParameterUpdates),
SubscribeConnectionGraph,
UnsubscribeConnectionGraph,
}Variants§
Subscribe(Subscribe)
Unsubscribe(Unsubscribe)
Advertise(ClientAdvertise)
Unadvertise(ClientUnadvertise)
GetParameters(GetParameters)
SetParameters(SetParameters)
SubscribeParameterUpdates(SubscribeParameterUpdates)
UnsubscribeParameterUpdates(UnsubscribeParameterUpdates)
SubscribeConnectionGraph
UnsubscribeConnectionGraph
Implementations§
Source§impl ClientJsonMessage
impl ClientJsonMessage
pub fn to_message(&self) -> DigitalisResult<Message>
pub fn serialize(&self) -> DigitalisResult<String>
pub fn deserialize(text: &str) -> DigitalisResult<Self>
Trait Implementations§
Source§impl Clone for ClientJsonMessage
impl Clone for ClientJsonMessage
Source§fn clone(&self) -> ClientJsonMessage
fn clone(&self) -> ClientJsonMessage
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 ClientJsonMessage
impl Debug for ClientJsonMessage
Source§impl<'de> Deserialize<'de> for ClientJsonMessage
impl<'de> Deserialize<'de> for ClientJsonMessage
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 From<ClientAdvertise> for ClientJsonMessage
impl From<ClientAdvertise> for ClientJsonMessage
Source§fn from(msg: ClientAdvertise) -> Self
fn from(msg: ClientAdvertise) -> Self
Converts to this type from the input type.
Source§impl From<ClientJsonMessage> for ClientMessage
impl From<ClientJsonMessage> for ClientMessage
Source§fn from(msg: ClientJsonMessage) -> Self
fn from(msg: ClientJsonMessage) -> Self
Converts to this type from the input type.
Source§impl From<ClientUnadvertise> for ClientJsonMessage
impl From<ClientUnadvertise> for ClientJsonMessage
Source§fn from(msg: ClientUnadvertise) -> Self
fn from(msg: ClientUnadvertise) -> Self
Converts to this type from the input type.
Source§impl From<GetParameters> for ClientJsonMessage
impl From<GetParameters> for ClientJsonMessage
Source§fn from(msg: GetParameters) -> Self
fn from(msg: GetParameters) -> Self
Converts to this type from the input type.
Source§impl From<SetParameters> for ClientJsonMessage
impl From<SetParameters> for ClientJsonMessage
Source§fn from(msg: SetParameters) -> Self
fn from(msg: SetParameters) -> Self
Converts to this type from the input type.
Source§impl From<Subscribe> for ClientJsonMessage
impl From<Subscribe> for ClientJsonMessage
Source§impl From<SubscribeParameterUpdates> for ClientJsonMessage
impl From<SubscribeParameterUpdates> for ClientJsonMessage
Source§fn from(msg: SubscribeParameterUpdates) -> Self
fn from(msg: SubscribeParameterUpdates) -> Self
Converts to this type from the input type.
Source§impl From<Unsubscribe> for ClientJsonMessage
impl From<Unsubscribe> for ClientJsonMessage
Source§fn from(msg: Unsubscribe) -> Self
fn from(msg: Unsubscribe) -> Self
Converts to this type from the input type.
Source§impl From<UnsubscribeParameterUpdates> for ClientJsonMessage
impl From<UnsubscribeParameterUpdates> for ClientJsonMessage
Source§fn from(msg: UnsubscribeParameterUpdates) -> Self
fn from(msg: UnsubscribeParameterUpdates) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClientJsonMessage
impl PartialEq for ClientJsonMessage
Source§impl Serialize for ClientJsonMessage
impl Serialize for ClientJsonMessage
impl Eq for ClientJsonMessage
impl StructuralPartialEq for ClientJsonMessage
Auto Trait Implementations§
impl Freeze for ClientJsonMessage
impl RefUnwindSafe for ClientJsonMessage
impl Send for ClientJsonMessage
impl Sync for ClientJsonMessage
impl Unpin for ClientJsonMessage
impl UnwindSafe for ClientJsonMessage
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