pub enum DurableOwner<'a> {
Agent(&'a str),
Module(&'a str),
}Expand description
Whose durable a cursor binds: an agent or a module, with its id. The
backend derives the durable name from the kind and the id (c_ or m_
followed by the id), so a cursor can bind only an agent’s or a module’s
durable and never an arbitrary consumer name.
Variants§
Agent(&'a str)
An agent’s durable on an agent stream (WAKE, PEER, EFFECT), named
c_{agent_id}.
Module(&'a str)
A module’s durable on a non-agent stream (EVENT, or prefrontal-core’s
one durable on ROOM), named m_{module_id}.
Trait Implementations§
Source§impl<'a> Clone for DurableOwner<'a>
impl<'a> Clone for DurableOwner<'a>
impl<'a> Copy for DurableOwner<'a>
Source§impl<'a> Debug for DurableOwner<'a>
impl<'a> Debug for DurableOwner<'a>
impl<'a> Eq for DurableOwner<'a>
Source§impl<'a> PartialEq for DurableOwner<'a>
impl<'a> PartialEq for DurableOwner<'a>
impl<'a> StructuralPartialEq for DurableOwner<'a>
Auto Trait Implementations§
impl<'a> Forget for DurableOwner<'a>
impl<'a> Freeze for DurableOwner<'a>
impl<'a> RefUnwindSafe for DurableOwner<'a>
impl<'a> Send for DurableOwner<'a>
impl<'a> Sync for DurableOwner<'a>
impl<'a> Unpin for DurableOwner<'a>
impl<'a> UnsafeUnpin for DurableOwner<'a>
impl<'a> UnwindSafe for DurableOwner<'a>
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