pub struct BoundaryCounters {
pub strings_crossed: u64,
pub bytes_copied: u64,
}Expand description
What crossed from the guest runtime into the host, in bytes.
The runtime adapter records each string conversion at the boundary. Repeated values count separately because each copied string is part of the traffic.
Fields§
§strings_crossed: u64Strings copied from the guest runtime into the host.
bytes_copied: u64Their total length in UTF-8 bytes.
Trait Implementations§
Source§impl Clone for BoundaryCounters
impl Clone for BoundaryCounters
impl Copy for BoundaryCounters
Source§impl Debug for BoundaryCounters
impl Debug for BoundaryCounters
Source§impl Default for BoundaryCounters
impl Default for BoundaryCounters
impl Eq for BoundaryCounters
Source§impl PartialEq for BoundaryCounters
impl PartialEq for BoundaryCounters
impl StructuralPartialEq for BoundaryCounters
Auto Trait Implementations§
impl Forget for BoundaryCounters
impl Freeze for BoundaryCounters
impl Move for BoundaryCounters
impl RefUnwindSafe for BoundaryCounters
impl Send for BoundaryCounters
impl Sync for BoundaryCounters
impl Unpin for BoundaryCounters
impl UnsafeUnpin for BoundaryCounters
impl UnwindSafe for BoundaryCounters
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
impl<T> Brush for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert