pub struct NodeTransferRequest {
pub node_id: NodeId,
pub from_shard: ShardId,
pub to_shard: ShardId,
pub include_edges: bool,
}Expand description
Request to transfer a node to another shard.
Used during rebalancing operations.
Fields§
§node_id: NodeIdNode to transfer.
from_shard: ShardIdCurrent shard (source).
to_shard: ShardIdTarget shard (destination).
include_edges: boolInclude connected edges.
Trait Implementations§
Source§impl Clone for NodeTransferRequest
impl Clone for NodeTransferRequest
Source§fn clone(&self) -> NodeTransferRequest
fn clone(&self) -> NodeTransferRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeTransferRequest
impl Debug for NodeTransferRequest
Source§impl<'de> Deserialize<'de> for NodeTransferRequest
impl<'de> Deserialize<'de> for NodeTransferRequest
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
Auto Trait Implementations§
impl Freeze for NodeTransferRequest
impl RefUnwindSafe for NodeTransferRequest
impl Send for NodeTransferRequest
impl Sync for NodeTransferRequest
impl Unpin for NodeTransferRequest
impl UnsafeUnpin for NodeTransferRequest
impl UnwindSafe for NodeTransferRequest
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