pub struct AttributeBuffer { /* private fields */ }Expand description
Local dirty-mutation queue for subscriber attributes. Unlike the
session buffer, callers list then delete separately so the
dispatcher can keep rows queued when a flush fails (attributes are
durable user data, not fire-and-forget telemetry).
Implementations§
Source§impl AttributeBuffer
impl AttributeBuffer
pub fn new(store: Arc<CacheStore>) -> Self
Sourcepub fn set(
&self,
rovenue_id: &str,
key: &str,
value: Option<&str>,
) -> RovenueResult<()>
pub fn set( &self, rovenue_id: &str, key: &str, value: Option<&str>, ) -> RovenueResult<()>
Queue a single attribute mutation under rovenue_id, the wire
identity it was made under. None value means delete.
pub fn list(&self, limit: usize) -> RovenueResult<Vec<AttributeMutationRow>>
pub fn delete(&self, ids: &[i64]) -> RovenueResult<()>
Auto Trait Implementations§
impl Freeze for AttributeBuffer
impl RefUnwindSafe for AttributeBuffer
impl Send for AttributeBuffer
impl Sync for AttributeBuffer
impl Unpin for AttributeBuffer
impl UnwindSafe for AttributeBuffer
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