pub struct RegisterNotificationMessage {
pub method: String,
pub send_back: Sender<Result<(Receiver<JsonValue>, String), Error>>,
}Available on crate feature
client only.Expand description
RegisterNotification message.
Fields§
§method: StringMethod name this notification handler is attached to
send_back: Sender<Result<(Receiver<JsonValue>, 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 !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