pub struct GraphShard { /* private fields */ }Expand description
Graph shard containing partitioned data
Implementations§
Source§impl GraphShard
impl GraphShard
Sourcepub fn new(metadata: ShardMetadata) -> Self
pub fn new(metadata: ShardMetadata) -> Self
Create a new graph shard
Sourcepub fn metadata(&self) -> &ShardMetadata
pub fn metadata(&self) -> &ShardMetadata
Get shard metadata
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Get node count
Sourcepub fn edge_count(&self) -> usize
pub fn edge_count(&self) -> usize
Get edge count
Sourcepub fn list_nodes(&self) -> Vec<NodeData>
pub fn list_nodes(&self) -> Vec<NodeData>
List all nodes in this shard
Sourcepub fn list_edges(&self) -> Vec<EdgeData>
pub fn list_edges(&self) -> Vec<EdgeData>
List all edges in this shard
Auto Trait Implementations§
impl Freeze for GraphShard
impl !RefUnwindSafe for GraphShard
impl Send for GraphShard
impl Sync for GraphShard
impl Unpin for GraphShard
impl !UnwindSafe for GraphShard
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request