Ray

Type Alias Ray 

Source
pub type Ray = RayHandle<Immediate>;
Expand description

Main entry point for sending payloads to Ray.

The ray!() macro constructs a Ray with a default client and callsite metadata. Use Ray::new when you want explicit configuration control. Chainable methods are best-effort and intentionally ignore transport errors. Use the try_* variants when you want to surface errors (they return Result).

use ray::{Client, Origin, Ray, RayConfig};

let config = RayConfig {
    enabled: false,
    ..Default::default()
};
let ray = Ray::new(Client::new(config), Origin::default());

ray.log(&"Hello").green().label("docs");

Aliased Typeยง

pub struct Ray { /* private fields */ }