pub enum ClientNotification {
CancelledNotification(CancelledNotification),
InitializedNotification(InitializedNotification),
ProgressNotification(ProgressNotification),
RootsListChangedNotification(RootsListChangedNotification),
}
Expand description
ClientNotification
JSON schema
{
"anyOf": [
{
"$ref": "#/definitions/CancelledNotification"
},
{
"$ref": "#/definitions/InitializedNotification"
},
{
"$ref": "#/definitions/ProgressNotification"
},
{
"$ref": "#/definitions/RootsListChangedNotification"
}
]
}
Variants§
CancelledNotification(CancelledNotification)
InitializedNotification(InitializedNotification)
ProgressNotification(ProgressNotification)
RootsListChangedNotification(RootsListChangedNotification)
Implementations§
Trait Implementations§
Source§impl Clone for ClientNotification
impl Clone for ClientNotification
Source§fn clone(&self) -> ClientNotification
fn clone(&self) -> ClientNotification
Returns a copy 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 ClientNotification
impl Debug for ClientNotification
Source§impl<'de> Deserialize<'de> for ClientNotification
Implementing the Deserialize trait
This allows enum to be deserialized into correct type based on the value of the “method”
impl<'de> Deserialize<'de> for ClientNotification
Implementing the Deserialize trait This allows enum to be deserialized into correct type based on the value of the “method”
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ClientNotification, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ClientNotification, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CancelledNotification> for ClientNotification
impl From<CancelledNotification> for ClientNotification
Source§fn from(value: CancelledNotification) -> ClientNotification
fn from(value: CancelledNotification) -> ClientNotification
Converts to this type from the input type.
Source§impl From<InitializedNotification> for ClientNotification
impl From<InitializedNotification> for ClientNotification
Source§fn from(value: InitializedNotification) -> ClientNotification
fn from(value: InitializedNotification) -> ClientNotification
Converts to this type from the input type.
Source§impl From<ProgressNotification> for ClientNotification
impl From<ProgressNotification> for ClientNotification
Source§fn from(value: ProgressNotification) -> ClientNotification
fn from(value: ProgressNotification) -> ClientNotification
Converts to this type from the input type.
Source§impl From<RootsListChangedNotification> for ClientNotification
impl From<RootsListChangedNotification> for ClientNotification
Source§fn from(value: RootsListChangedNotification) -> ClientNotification
fn from(value: RootsListChangedNotification) -> ClientNotification
Converts to this type from the input type.
Source§impl Serialize for ClientNotification
impl Serialize for ClientNotification
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<NotificationFromClient> for ClientNotification
impl TryFrom<NotificationFromClient> for ClientNotification
Source§fn try_from(
value: NotificationFromClient,
) -> Result<ClientNotification, <ClientNotification as TryFrom<NotificationFromClient>>::Error>
fn try_from( value: NotificationFromClient, ) -> Result<ClientNotification, <ClientNotification as TryFrom<NotificationFromClient>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ClientNotification
impl RefUnwindSafe for ClientNotification
impl Send for ClientNotification
impl Sync for ClientNotification
impl Unpin for ClientNotification
impl UnwindSafe for ClientNotification
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