pub struct SpikeEvent {
pub channel: u16,
pub time: u32,
pub strength: f32,
}Expand description
Individual spike event with channel, timing, and strength.
An element of an IPC SpikeBatch, not a training row.
Fields§
§channel: u16Compute channel or channel identifier.
time: u32Spike timestamp (relative or absolute).
strength: f32Spike strength or amplitude.
Trait Implementations§
Source§impl Clone for SpikeEvent
impl Clone for SpikeEvent
Source§impl Debug for SpikeEvent
impl Debug for SpikeEvent
Source§impl Default for SpikeEvent
impl Default for SpikeEvent
Source§impl<'de> Deserialize<'de> for SpikeEvent
impl<'de> Deserialize<'de> for SpikeEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SpikeEvent
impl PartialEq for SpikeEvent
Source§impl Serialize for SpikeEvent
impl Serialize for SpikeEvent
impl StructuralPartialEq for SpikeEvent
Source§impl Validate for SpikeEvent
impl Validate for SpikeEvent
Source§fn validate_with(&self, _limits: ProtocolLimits) -> Result<(), ValidationError>
fn validate_with(&self, _limits: ProtocolLimits) -> Result<(), ValidationError>
Validate against an explicit policy.
Source§fn validate(&self) -> Result<(), ValidationError>
fn validate(&self) -> Result<(), ValidationError>
Validate against
ProtocolLimits::DEFAULT.Auto Trait Implementations§
impl Freeze for SpikeEvent
impl RefUnwindSafe for SpikeEvent
impl Send for SpikeEvent
impl Sync for SpikeEvent
impl Unpin for SpikeEvent
impl UnsafeUnpin for SpikeEvent
impl UnwindSafe for SpikeEvent
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