Struct xray_lite::DaemonClient
source · pub struct DaemonClient { /* private fields */ }
Expand description
X-Ray daemon client.
Implementations§
source§impl DaemonClient
impl DaemonClient
sourcepub fn new(addr: SocketAddr) -> Result<Self>
pub fn new(addr: SocketAddr) -> Result<Self>
Return a new X-Ray client connected
to the provided addr
sourcepub fn from_lambda_env() -> Result<Self>
pub fn from_lambda_env() -> Result<Self>
Creates a new X-Ray client from the Lambda environment variable.
The following environment variable must be set:
AWS_XRAY_DAEMON_ADDRESS
: X-Ray daemon address
Please refer to the AWS documentation for more details.
Trait Implementations§
source§impl Client for DaemonClient
impl Client for DaemonClient
source§impl Clone for DaemonClient
impl Clone for DaemonClient
source§fn clone(&self) -> DaemonClient
fn clone(&self) -> DaemonClient
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 moreAuto Trait Implementations§
impl RefUnwindSafe for DaemonClient
impl Send for DaemonClient
impl Sync for DaemonClient
impl Unpin for DaemonClient
impl UnwindSafe for DaemonClient
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