pub struct StateStreamStorage { /* private fields */ }Expand description
Persistence and backpressure policy for one logical state stream.
Implementations§
Source§impl StateStreamStorage
impl StateStreamStorage
Sourcepub const fn chunked(target_bytes: NonZeroU64, queue_bytes: NonZeroU64) -> Self
pub const fn chunked(target_bytes: NonZeroU64, queue_bytes: NonZeroU64) -> Self
Creates an in-memory chunking policy with a strict queue-byte budget.
Sourcepub const fn individual_files(queue_bytes: NonZeroU64) -> Self
pub const fn individual_files(queue_bytes: NonZeroU64) -> Self
Creates a one-file-per-record policy with a strict queue-byte budget.
pub const fn layout(self) -> StateStreamLayout
pub const fn queue_bytes(self) -> NonZeroU64
Trait Implementations§
Source§impl Clone for StateStreamStorage
impl Clone for StateStreamStorage
Source§fn clone(&self) -> StateStreamStorage
fn clone(&self) -> StateStreamStorage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StateStreamStorage
Source§impl Debug for StateStreamStorage
impl Debug for StateStreamStorage
Source§impl<'de> Deserialize<'de> for StateStreamStorage
impl<'de> Deserialize<'de> for StateStreamStorage
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
impl Eq for StateStreamStorage
Source§impl PartialEq for StateStreamStorage
impl PartialEq for StateStreamStorage
Source§impl Serialize for StateStreamStorage
impl Serialize for StateStreamStorage
impl StructuralPartialEq for StateStreamStorage
Auto Trait Implementations§
impl Freeze for StateStreamStorage
impl RefUnwindSafe for StateStreamStorage
impl Send for StateStreamStorage
impl Sync for StateStreamStorage
impl Unpin for StateStreamStorage
impl UnsafeUnpin for StateStreamStorage
impl UnwindSafe for StateStreamStorage
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