pub enum RpcEvent {
CustomRequest(CustomCommandRequest),
ResponseResult(ResponseResult),
RoutingUpdated {
peer: Peer,
old_peer: Option<Peer>,
},
Bootstrapped(Arc<Bootstrapped>),
ReadyToCommit {
query: Arc<RwLock<Query>>,
tx_commit_messages: Sender<CommitMessage>,
},
QueryResult(Arc<QueryResult>),
QueryResponse(Arc<InResponse>),
}Variants§
CustomRequest(CustomCommandRequest)
Result wrapping an incomming Request Only emits Ok on custom/external commands. Errs on any request error (custom or non-custom)
ResponseResult(ResponseResult)
Result wrapping an incomming Response Emits for any valid response
RoutingUpdated
The routing table has been updated.
Fields
Bootstrapped(Arc<Bootstrapped>)
Emitted when bootstrapping is complete
ReadyToCommit
Only emitted when Query is made with Commit::Custom
Fields
QueryResult(Arc<QueryResult>)
A completed query.
No more responses are expected for this query
QueryResponse(Arc<InResponse>)
A single response for a request made for a query
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RpcEvent
impl !UnwindSafe for RpcEvent
impl Freeze for RpcEvent
impl Send for RpcEvent
impl Sync for RpcEvent
impl Unpin for RpcEvent
impl UnsafeUnpin for RpcEvent
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