pub enum NodeServiceRequest {
Show 14 variants
GetNodeRpc {},
GetPredecessorRpc {},
GetSuccessorRpc {},
GetSuccessorListRpc {},
FindSuccessorListRpc {
id: Digest,
},
FindPredecessorRpc {
id: Digest,
},
ClosestPrecedingFingerRpc {
id: Digest,
},
NotifyRpc {
node: Node,
},
StabilizeRpc {},
GetLocalRpc {
key: Key,
},
SetLocalRpc {
key: Key,
value: Option<Value>,
},
GetRpc {
key: Key,
},
SetRpc {
key: Key,
value: Option<Value>,
},
ReplicateRpc {
key: Key,
value: Option<Value>,
},
}Expand description
The request sent over the wire from the client to the server.
Variants§
GetNodeRpc
GetPredecessorRpc
GetSuccessorRpc
GetSuccessorListRpc
FindSuccessorListRpc
FindPredecessorRpc
ClosestPrecedingFingerRpc
NotifyRpc
StabilizeRpc
GetLocalRpc
SetLocalRpc
GetRpc
SetRpc
ReplicateRpc
Trait Implementations§
Source§impl Debug for NodeServiceRequest
impl Debug for NodeServiceRequest
Source§impl<'de> Deserialize<'de> for NodeServiceRequest
impl<'de> Deserialize<'de> for NodeServiceRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NodeServiceRequest
impl Serialize for NodeServiceRequest
Source§impl<S> Serve<NodeServiceRequest> for ServeNodeService<S>where
S: NodeService,
impl<S> Serve<NodeServiceRequest> for ServeNodeService<S>where
S: NodeService,
Source§type Resp = NodeServiceResponse
type Resp = NodeServiceResponse
Type of response.
Source§type Fut = NodeServiceResponseFut<S>
type Fut = NodeServiceResponseFut<S>
Type of response future.
Auto Trait Implementations§
impl Freeze for NodeServiceRequest
impl RefUnwindSafe for NodeServiceRequest
impl Send for NodeServiceRequest
impl Sync for NodeServiceRequest
impl Unpin for NodeServiceRequest
impl UnsafeUnpin for NodeServiceRequest
impl UnwindSafe for NodeServiceRequest
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