pub struct SetupTracing {
pub shared_buffer_page_size_kb: Option<u32>,
pub shm_key_windows: Option<String>,
}
Expand description
On Android/Linux/Mac this message also transports the file descriptor for the shared memory buffer (not a proto field).
Fields§
§shm_key_windows: Option<String>
On Windows, instead, we pass the name (an unguessable token) of a shared memory region that can be attached by the other process by name. Introduced in v13.
Implementations§
Source§impl SetupTracing
impl SetupTracing
Returns the value of shared_buffer_page_size_kb
, or the default value if shared_buffer_page_size_kb
is unset.
Sourcepub fn shm_key_windows(&self) -> &str
pub fn shm_key_windows(&self) -> &str
Returns the value of shm_key_windows
, or the default value if shm_key_windows
is unset.
Trait Implementations§
Source§impl Clone for SetupTracing
impl Clone for SetupTracing
Source§fn clone(&self) -> SetupTracing
fn clone(&self) -> SetupTracing
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SetupTracing
impl Debug for SetupTracing
Source§impl Default for SetupTracing
impl Default for SetupTracing
Source§impl Message for SetupTracing
impl Message for SetupTracing
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for SetupTracing
impl PartialEq for SetupTracing
impl StructuralPartialEq for SetupTracing
Auto Trait Implementations§
impl Freeze for SetupTracing
impl RefUnwindSafe for SetupTracing
impl Send for SetupTracing
impl Sync for SetupTracing
impl Unpin for SetupTracing
impl UnwindSafe for SetupTracing
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