pub struct RegisterNotificationMessage {
pub method: String,
pub send_back: Sender<Result<(Receiver<Value>, String), Error>>,
}
Expand description
RegisterNotification message.
Fields§
§method: String
Method name this notification handler is attached to
send_back: Sender<Result<(Receiver<Value>, String), Error>>
We return a mpsc::Receiver
that will receive notifications.
When we get a response from the server about that subscription, we send the result over
this channel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RegisterNotificationMessage
impl !RefUnwindSafe for RegisterNotificationMessage
impl Send for RegisterNotificationMessage
impl Sync for RegisterNotificationMessage
impl Unpin for RegisterNotificationMessage
impl !UnwindSafe for RegisterNotificationMessage
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