pub struct RealtimeSession<B: RealtimeBackend> { /* private fields */ }Expand description
Request-local realtime state released from a scheduler.
Implementations§
Source§impl<B: RealtimeBackend> RealtimeSession<B>
impl<B: RealtimeBackend> RealtimeSession<B>
Trait Implementations§
Source§impl<B: RealtimeBackend> SemanticStateTransaction for RealtimeSession<B>
impl<B: RealtimeBackend> SemanticStateTransaction for RealtimeSession<B>
Source§type Branch = RealtimeSessionBranch<B>
type Branch = RealtimeSessionBranch<B>
Transition-local branch.
Source§type Error = <B as RealtimeBackend>::Error
type Error = <B as RealtimeBackend>::Error
State error.
Source§fn commit_branch(&mut self, branch: Self::Branch) -> Result<(), Self::Error>
fn commit_branch(&mut self, branch: Self::Branch) -> Result<(), Self::Error>
Publishes a completed branch.
Source§fn discard_branch(branch: Self::Branch) -> Result<(), Self::Error>
fn discard_branch(branch: Self::Branch) -> Result<(), Self::Error>
Discards an unpublished branch.
Source§fn permits_parallel_branches(&self) -> bool
fn permits_parallel_branches(&self) -> bool
Whether independent branches may share the current canonical base.
Auto Trait Implementations§
impl<B> Freeze for RealtimeSession<B>
impl<B> RefUnwindSafe for RealtimeSession<B>where
<B as RealtimeBackend>::ModelIdentity: RefUnwindSafe,
<B as RealtimeBackend>::Session: RefUnwindSafe,
impl<B> Send for RealtimeSession<B>
impl<B> Sync for RealtimeSession<B>
impl<B> Unpin for RealtimeSession<B>
impl<B> UnsafeUnpin for RealtimeSession<B>where
<B as RealtimeBackend>::ModelIdentity: UnsafeUnpin,
<B as RealtimeBackend>::Session: UnsafeUnpin,
impl<B> UnwindSafe for RealtimeSession<B>where
<B as RealtimeBackend>::ModelIdentity: UnwindSafe,
<B as RealtimeBackend>::Session: UnwindSafe,
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