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§fn default() -> MemoryEdge
fn default() -> MemoryEdge
Source§impl Message for MemoryEdge
impl Message for MemoryEdge
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for MemoryEdge
impl PartialEq for MemoryEdge
impl Copy for MemoryEdge
impl StructuralPartialEq for MemoryEdge
Auto Trait Implementations§
impl Freeze for MemoryEdge
impl RefUnwindSafe for MemoryEdge
impl Send for MemoryEdge
impl Sync for MemoryEdge
impl Unpin for MemoryEdge
impl UnwindSafe for MemoryEdge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].