pub struct StreamNames {
pub room: String,
pub wake: String,
pub peer: String,
pub effect: String,
pub effect_dead: String,
pub event: String,
}Expand description
All six stream names owned by one account.
Fields§
§room: String§wake: String§peer: String§effect: String§effect_dead: String§event: StringModule events (ck.{acct}.event.>), read by the flow engine.
Implementations§
Source§impl StreamNames
impl StreamNames
pub fn all(&self) -> [&str; 6]
Sourcepub fn agent_streams(&self) -> [&str; 3]
pub fn agent_streams(&self) -> [&str; 3]
The streams that hold per-agent durables (c_{agent_id}): WAKE, PEER, EFFECT.
Grants that let a credential read any agent’s durable use a whole-token *
in the consumer position on exactly these streams (NATS wildcards cannot
match a c_ prefix), which admits every consumer on them. So no non-agent
durable may ever be created on these streams; ck-bus asserts that against
this list. ROOM, EFFECT_DEAD and EVENT are not agent streams: EVENT and
ROOM hold module durables (m_{module_id}), never a c_ durable.
Trait Implementations§
Source§impl Clone for StreamNames
impl Clone for StreamNames
Source§impl Debug for StreamNames
impl Debug for StreamNames
impl Eq for StreamNames
Source§impl PartialEq for StreamNames
impl PartialEq for StreamNames
impl StructuralPartialEq for StreamNames
Auto Trait Implementations§
impl Freeze for StreamNames
impl RefUnwindSafe for StreamNames
impl Send for StreamNames
impl Sync for StreamNames
impl Unpin for StreamNames
impl UnsafeUnpin for StreamNames
impl UnwindSafe for StreamNames
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