pub struct NetworkGenerationRing { /* private fields */ }Expand description
Stateful network generation kernel for Ring mode.
Implementations§
Source§impl NetworkGenerationRing
impl NetworkGenerationRing
Sourcepub fn with_config(config: NetworkGenerationConfig) -> Self
pub fn with_config(config: NetworkGenerationConfig) -> Self
Create with custom configuration.
Sourcepub fn stats(&self) -> NetworkGenerationStats
pub fn stats(&self) -> NetworkGenerationStats
Get current network statistics.
Sourcepub fn flow_count(&self) -> usize
pub fn flow_count(&self) -> usize
Get total flow count.
Sourcepub fn account_count(&self) -> usize
pub fn account_count(&self) -> usize
Get total account count.
Sourcepub fn add_entry(&self, entry: &JournalEntry) -> Vec<AccountingFlow>
pub fn add_entry(&self, entry: &JournalEntry) -> Vec<AccountingFlow>
Add a journal entry and return generated flows.
Sourcepub fn query_flows(
&self,
account: &str,
start_time: u64,
end_time: u64,
limit: usize,
) -> Vec<AccountingFlow>
pub fn query_flows( &self, account: &str, start_time: u64, end_time: u64, limit: usize, ) -> Vec<AccountingFlow>
Query flows for an account within a time window.
Trait Implementations§
Source§impl Clone for NetworkGenerationRing
impl Clone for NetworkGenerationRing
Source§impl Debug for NetworkGenerationRing
impl Debug for NetworkGenerationRing
Source§impl Default for NetworkGenerationRing
impl Default for NetworkGenerationRing
Source§impl GpuKernel for NetworkGenerationRing
impl GpuKernel for NetworkGenerationRing
Source§fn metadata(&self) -> &KernelMetadata
fn metadata(&self) -> &KernelMetadata
Returns the kernel metadata.
Source§fn requires_gpu_native(&self) -> bool
fn requires_gpu_native(&self) -> bool
Returns true if this kernel requires GPU-native execution.
Auto Trait Implementations§
impl !Freeze for NetworkGenerationRing
impl RefUnwindSafe for NetworkGenerationRing
impl Send for NetworkGenerationRing
impl Sync for NetworkGenerationRing
impl Unpin for NetworkGenerationRing
impl UnwindSafe for NetworkGenerationRing
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.