pub struct RemoteAgentClientConfiguration {
pub cmd_port: u16,
pub auth: IpcAuthConfiguration,
pub grpc_max_message_size: usize,
pub vsock_cid: Option<u32>,
}Expand description
Datadog Agent IPC client configuration.
Fields§
§cmd_port: u16Core Agent CMD API port used for remote-agent gRPC IPC on localhost.
auth: IpcAuthConfigurationAuthentication configuration for the IPC endpoint.
grpc_max_message_size: usizeMaximum message size for gRPC messages.
vsock_cid: Option<u32>Resolved CID for connecting to the Agent IPC endpoint via AF_VSOCK.
Implementations§
Source§impl RemoteAgentClientConfiguration
impl RemoteAgentClientConfiguration
Sourcepub fn from_parts(
cmd_port: u16,
auth: IpcAuthConfiguration,
grpc_max_message_size: usize,
vsock_addr: &str,
) -> Result<Self, GenericError>
pub fn from_parts( cmd_port: u16, auth: IpcAuthConfiguration, grpc_max_message_size: usize, vsock_addr: &str, ) -> Result<Self, GenericError>
Creates a RemoteAgentClientConfiguration from its parts, resolving the named vsock address to a CID.
vsock_addr follows the Datadog Agent’s vsock_addr setting: an empty value disables vsock, and host,
hypervisor, and local select the well-known context identifiers 2, 0, and 3. vsock is only supported on
Linux; on other platforms, a non-empty value is ignored with a warning.
§Errors
On Linux, returns an error if vsock_addr is not empty and is not one of the supported names.
Sourcepub fn vsock_addr(&self) -> Option<VsockAddr>
pub fn vsock_addr(&self) -> Option<VsockAddr>
Returns the vsock address to use for connecting to the IPC endpoint, if configured.
Trait Implementations§
Source§impl Clone for RemoteAgentClientConfiguration
impl Clone for RemoteAgentClientConfiguration
Source§fn clone(&self) -> RemoteAgentClientConfiguration
fn clone(&self) -> RemoteAgentClientConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RemoteAgentClientConfiguration
impl RefUnwindSafe for RemoteAgentClientConfiguration
impl Send for RemoteAgentClientConfiguration
impl Sync for RemoteAgentClientConfiguration
impl Unpin for RemoteAgentClientConfiguration
impl UnsafeUnpin for RemoteAgentClientConfiguration
impl UnwindSafe for RemoteAgentClientConfiguration
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Track for T
impl<T> Track for T
Source§fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
Tracked wrapper. Read moreSource§fn in_current_resource_group(self) -> Tracked<Self>
fn in_current_resource_group(self) -> Tracked<Self>
Tracked wrapper. Read more