pub struct MemoryEdge {
pub source_id: Option<u64>,
pub target_id: Option<u64>,
pub importance: Option<u32>,
pub overridable: Option<bool>,
}
Expand description
A directed edge that connects any 2 nodes in the graph above. These are in addition to the inherent edges added due to the tree structure of the node’s absolute names. Node with id |source_id| owns the node with id |target_id|, and has the effect of attributing the memory usage of target to source. |importance| is optional and relevant only for the cases of co-ownership, where it acts as a z-index: the owner with the highest importance will be attributed target’s memory.
Fields§
§source_id: Option<u64>
§target_id: Option<u64>
§importance: Option<u32>
§overridable: Option<bool>
Implementations§
Source§impl MemoryEdge
impl MemoryEdge
Sourcepub fn source_id(&self) -> u64
pub fn source_id(&self) -> u64
Returns the value of source_id
, or the default value if source_id
is unset.
Sourcepub fn target_id(&self) -> u64
pub fn target_id(&self) -> u64
Returns the value of target_id
, or the default value if target_id
is unset.
Sourcepub fn importance(&self) -> u32
pub fn importance(&self) -> u32
Returns the value of importance
, or the default value if importance
is unset.
Sourcepub fn overridable(&self) -> bool
pub fn overridable(&self) -> bool
Returns the value of overridable
, or the default value if overridable
is unset.
Trait Implementations§
Source§impl Clone for MemoryEdge
impl Clone for MemoryEdge
Source§fn clone(&self) -> MemoryEdge
fn clone(&self) -> MemoryEdge
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MemoryEdge
impl Debug for MemoryEdge
Source§impl Default for MemoryEdge
impl Default for MemoryEdge
Source§impl Message for MemoryEdge
impl Message for MemoryEdge
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.