pub struct IrNotification {
pub method: MethodName,
pub params: IrParams,
pub extensions: Extensions,
}Expand description
A notification. Never has an id, never gets a reply.
Fields§
§method: MethodNameThe notification’s method.
params: IrParamsThe parameters.
extensions: ExtensionsUnmodelled fields.
Implementations§
Source§impl IrNotification
impl IrNotification
Sourcepub fn new(method: MethodName) -> Self
pub fn new(method: MethodName) -> Self
A notification with no parameters.
§Panics
Never: the method is supplied by the caller and a non-notification
method is a caller mistake that surfaces as a test failure, not a
production panic. Use Self::try_new to get a Result instead.
Trait Implementations§
Source§impl Clone for IrNotification
impl Clone for IrNotification
Source§impl Debug for IrNotification
impl Debug for IrNotification
Source§impl PartialEq for IrNotification
impl PartialEq for IrNotification
impl StructuralPartialEq for IrNotification
Auto Trait Implementations§
impl Freeze for IrNotification
impl RefUnwindSafe for IrNotification
impl Send for IrNotification
impl Sync for IrNotification
impl Unpin for IrNotification
impl UnsafeUnpin for IrNotification
impl UnwindSafe for IrNotification
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