pub struct InitializeConnectionResponse {
pub using_shmem_provided_by_producer: Option<bool>,
pub direct_smb_patching_supported: Option<bool>,
pub use_shmem_emulation: Option<bool>,
}
Fields§
§using_shmem_provided_by_producer: Option<bool>
Indicates whether the service accepted the SMB provided by the producer in InitializeConnectionRequest (if any). If false, the shared memory buffer FD will provided by the service via the SetupTracing async command.
direct_smb_patching_supported: Option<bool>
Indicates to the producer that the service allows direct SMB patching of chunks that have not yet been committed to it. This field has been introduced in Android S.
use_shmem_emulation: Option<bool>
Indicates whether the service would like to use SMB emulation for the connection, and request the client to send chunk data over the socket e.g. for remote connection from a VM guest.
Implementations§
Source§impl InitializeConnectionResponse
impl InitializeConnectionResponse
Sourcepub fn using_shmem_provided_by_producer(&self) -> bool
pub fn using_shmem_provided_by_producer(&self) -> bool
Returns the value of using_shmem_provided_by_producer
, or the default value if using_shmem_provided_by_producer
is unset.
Sourcepub fn direct_smb_patching_supported(&self) -> bool
pub fn direct_smb_patching_supported(&self) -> bool
Returns the value of direct_smb_patching_supported
, or the default value if direct_smb_patching_supported
is unset.
Sourcepub fn use_shmem_emulation(&self) -> bool
pub fn use_shmem_emulation(&self) -> bool
Returns the value of use_shmem_emulation
, or the default value if use_shmem_emulation
is unset.
Trait Implementations§
Source§impl Clone for InitializeConnectionResponse
impl Clone for InitializeConnectionResponse
Source§fn clone(&self) -> InitializeConnectionResponse
fn clone(&self) -> InitializeConnectionResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InitializeConnectionResponse
impl Debug for InitializeConnectionResponse
Source§impl Message for InitializeConnectionResponse
impl Message for InitializeConnectionResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
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>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
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,
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,
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,
self
.Source§impl PartialEq for InitializeConnectionResponse
impl PartialEq for InitializeConnectionResponse
Source§fn eq(&self, other: &InitializeConnectionResponse) -> bool
fn eq(&self, other: &InitializeConnectionResponse) -> bool
self
and other
values to be equal, and is used by ==
.