#[repr(C, align(64))]pub struct StreamHeader {
pub cycle: u64,
pub surprise_level: f32,
pub curiosity_level: f32,
pub predicted_query_hash: u64,
pub predicted_confidence: f32,
pub last_query_hash: u64,
pub last_query_ms: u64,
pub hebbian_total_energy: f64,
pub updated_ms: u64,
pub _pad: [u8; 16324],
}Fields§
§cycle: u64§surprise_level: f32§curiosity_level: f32§predicted_query_hash: u64§predicted_confidence: f32§last_query_hash: u64§last_query_ms: u64§hebbian_total_energy: f64§updated_ms: u64§_pad: [u8; 16324]Implementations§
Source§impl StreamHeader
impl StreamHeader
pub const HEADER_BYTES: usize = 60
pub fn to_bytes(&self) -> [u8; 16384]
pub fn from_bytes(buf: &[u8]) -> Self
Trait Implementations§
Source§impl Clone for StreamHeader
impl Clone for StreamHeader
impl Copy for StreamHeader
Source§impl Debug for StreamHeader
impl Debug for StreamHeader
Auto Trait Implementations§
impl Freeze for StreamHeader
impl RefUnwindSafe for StreamHeader
impl Send for StreamHeader
impl Sync for StreamHeader
impl Unpin for StreamHeader
impl UnsafeUnpin for StreamHeader
impl UnwindSafe for StreamHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more