pub enum ClientJsonrpcNotification {
CancelledNotification(CancelledNotification),
InitializedNotification(InitializedNotification),
ProgressNotification(ProgressNotification),
TaskStatusNotification(TaskStatusNotification),
RootsListChangedNotification(RootsListChangedNotification),
CustomNotification(JsonrpcNotification),
}Expand description
“Similar to JsonrpcNotification , but with the variants restricted to client-side notifications.”
Variants§
CancelledNotification(CancelledNotification)
InitializedNotification(InitializedNotification)
ProgressNotification(ProgressNotification)
TaskStatusNotification(TaskStatusNotification)
RootsListChangedNotification(RootsListChangedNotification)
CustomNotification(JsonrpcNotification)
Implementations§
Source§impl ClientJsonrpcNotification
impl ClientJsonrpcNotification
pub fn new(notification: NotificationFromClient) -> ClientJsonrpcNotification
pub fn jsonrpc(&self) -> &String
Sourcepub fn is_initialized_notification(&self) -> bool
pub fn is_initialized_notification(&self) -> bool
Returns true if the message is an InitializedNotification
Trait Implementations§
Source§impl Clone for ClientJsonrpcNotification
impl Clone for ClientJsonrpcNotification
Source§fn clone(&self) -> ClientJsonrpcNotification
fn clone(&self) -> ClientJsonrpcNotification
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 ClientJsonrpcNotification
impl Debug for ClientJsonrpcNotification
Source§impl<'de> Deserialize<'de> for ClientJsonrpcNotification
impl<'de> Deserialize<'de> for ClientJsonrpcNotification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientJsonrpcNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientJsonrpcNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ClientJsonrpcNotification
Formats the ClientJsonrpcNotification as a JSON string.
impl Display for ClientJsonrpcNotification
Formats the ClientJsonrpcNotification as a JSON string.
Source§impl From<ClientJsonrpcNotification> for ClientMessage
impl From<ClientJsonrpcNotification> for ClientMessage
Source§fn from(value: ClientJsonrpcNotification) -> ClientMessage
fn from(value: ClientJsonrpcNotification) -> ClientMessage
Converts to this type from the input type.
Source§impl From<ClientJsonrpcNotification> for NotificationFromClient
impl From<ClientJsonrpcNotification> for NotificationFromClient
Source§fn from(notification: ClientJsonrpcNotification) -> NotificationFromClient
fn from(notification: ClientJsonrpcNotification) -> NotificationFromClient
Converts to this type from the input type.
Source§impl FromStr for ClientJsonrpcNotification
impl FromStr for ClientJsonrpcNotification
Source§impl Serialize for ClientJsonrpcNotification
impl Serialize for ClientJsonrpcNotification
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
Auto Trait Implementations§
impl Freeze for ClientJsonrpcNotification
impl RefUnwindSafe for ClientJsonrpcNotification
impl Send for ClientJsonrpcNotification
impl Sync for ClientJsonrpcNotification
impl Unpin for ClientJsonrpcNotification
impl UnwindSafe for ClientJsonrpcNotification
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.