pub struct SessionEventNotification {
pub session_id: SessionId,
pub event: SessionEvent,
}Expand description
Wrapper for session event notifications received from the CLI.
The CLI sends these as JSON-RPC notifications on the session.event method.
Fields§
§session_id: SessionIdThe session this event belongs to.
event: SessionEventThe event payload.
Trait Implementations§
Source§impl Clone for SessionEventNotification
impl Clone for SessionEventNotification
Source§fn clone(&self) -> SessionEventNotification
fn clone(&self) -> SessionEventNotification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionEventNotification
impl Debug for SessionEventNotification
Source§impl<'de> Deserialize<'de> for SessionEventNotification
impl<'de> Deserialize<'de> for SessionEventNotification
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
Auto Trait Implementations§
impl Freeze for SessionEventNotification
impl RefUnwindSafe for SessionEventNotification
impl Send for SessionEventNotification
impl Sync for SessionEventNotification
impl Unpin for SessionEventNotification
impl UnsafeUnpin for SessionEventNotification
impl UnwindSafe for SessionEventNotification
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