pub enum Inbound {
Request {
id: u64,
method: String,
params: Payload,
},
Subscribe {
id: u64,
topic: String,
},
Unsubscribe {
sub: String,
},
Write {
topic: String,
payload: Payload,
},
Ping,
}Expand description
A logical request arriving over a Connection (what the server receives).
Variants§
Request
An RPC call expecting a single Outbound::Reply.
Fields
Subscribe
Open a subscription producing many Outbound::Events.
Unsubscribe
Close a previously opened subscription.
Write
A fire-and-forget write (no reply).
Ping
Keepalive.
Auto Trait Implementations§
impl Freeze for Inbound
impl RefUnwindSafe for Inbound
impl Send for Inbound
impl Sync for Inbound
impl Unpin for Inbound
impl UnsafeUnpin for Inbound
impl UnwindSafe for Inbound
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