pub struct ObservationBuilder<'a> { /* private fields */ }Expand description
Fluent builder for constructing and sending an Observation.
Implementations§
Source§impl<'a> ObservationBuilder<'a>
impl<'a> ObservationBuilder<'a>
pub fn urgency(self, u: f32) -> Self
pub fn steps_remaining(self, s: u32) -> Self
Sourcepub fn tensor(self, key: &str, data: &[u8], dtype: i32, shape: &[i64]) -> Self
pub fn tensor(self, key: &str, data: &[u8], dtype: i32, shape: &[i64]) -> Self
Add a raw tensor.
Sourcepub fn tensor_f32(self, key: &str, data: &[f32], shape: &[i64]) -> Self
pub fn tensor_f32(self, key: &str, data: &[f32], shape: &[i64]) -> Self
Add a float32 tensor (convenience).
Auto Trait Implementations§
impl<'a> Freeze for ObservationBuilder<'a>
impl<'a> RefUnwindSafe for ObservationBuilder<'a>
impl<'a> !Send for ObservationBuilder<'a>
impl<'a> !Sync for ObservationBuilder<'a>
impl<'a> Unpin for ObservationBuilder<'a>
impl<'a> UnsafeUnpin for ObservationBuilder<'a>
impl<'a> UnwindSafe for ObservationBuilder<'a>
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