pub struct CodeRange {
pub base_address: Option<u64>,
pub size: Option<u64>,
pub embedded_blob_code_copy_start_address: Option<u64>,
pub is_process_wide: Option<bool>,
}Expand description
A code range is a virtual memory cage that may contain executable code. Depending on the Isolate settings the Isolate might have one or not. See: https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/code-range.h If the isolate defines code range this will be tracked here.
Fields§
§base_address: Option<u64>§size: Option<u64>§embedded_blob_code_copy_start_address: Option<u64>Used when short builtin calls are enabled, where embedded builtins are copied into the CodeRange so calls can be nearer.
is_process_wide: Option<bool>Whether this code range is shared with other Isolates in the same process
Implementations§
Source§impl CodeRange
impl CodeRange
Sourcepub fn base_address(&self) -> u64
pub fn base_address(&self) -> u64
Returns the value of base_address, or the default value if base_address is unset.
Sourcepub fn embedded_blob_code_copy_start_address(&self) -> u64
pub fn embedded_blob_code_copy_start_address(&self) -> u64
Returns the value of embedded_blob_code_copy_start_address, or the default value if embedded_blob_code_copy_start_address is unset.
Sourcepub fn is_process_wide(&self) -> bool
pub fn is_process_wide(&self) -> bool
Returns the value of is_process_wide, or the default value if is_process_wide is unset.
Trait Implementations§
Source§impl Message for CodeRange
impl Message for CodeRange
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.impl Copy for CodeRange
impl StructuralPartialEq for CodeRange
Auto Trait Implementations§
impl Freeze for CodeRange
impl RefUnwindSafe for CodeRange
impl Send for CodeRange
impl Sync for CodeRange
impl Unpin for CodeRange
impl UnwindSafe for CodeRange
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].