pub struct SessionClaim {
pub session_uuid: String,
pub claim_holder: String,
}Expand description
The single-writer claim a stream worker holds while its child is live. The
uuid (the session:<uuid> claim key) and the holder are USELESS apart - a
uuid with no holder cannot be released, a holder with no uuid names nothing -
so they travel as a pair. Modeling them as one Option<SessionClaim> (vs two
independent Option<String>) makes the partial-fill state unrepresentable,
closing the “holder set, uuid not -> claim silently never released” footgun.
Fields§
§session_uuid: StringThe full session UUID (the session:<uuid> claim key, also the resume
target).
claim_holder: StringHolder string of the single-writer claim (acquired before spawn).
Trait Implementations§
Source§impl Clone for SessionClaim
impl Clone for SessionClaim
Source§fn clone(&self) -> SessionClaim
fn clone(&self) -> SessionClaim
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 moreAuto Trait Implementations§
impl Freeze for SessionClaim
impl RefUnwindSafe for SessionClaim
impl Send for SessionClaim
impl Sync for SessionClaim
impl Unpin for SessionClaim
impl UnsafeUnpin for SessionClaim
impl UnwindSafe for SessionClaim
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