pub enum StreamShape {
ReadOnly,
Mutating,
}Expand description
Classification of a compiled query, used by the database layer to
decide whether db.stream needs a hidden staged transaction.
Variants§
ReadOnly
No mutating operator anywhere in the plan or any of its UNION branches. Safe to stream against the live store.
Mutating
Has at least one mutating operator (Create / Merge / Delete / Set / Remove). The host should run this against a staged graph and only publish on cursor exhaustion.
Implementations§
Source§impl StreamShape
impl StreamShape
pub fn is_mutating(self) -> bool
Trait Implementations§
Source§impl Clone for StreamShape
impl Clone for StreamShape
Source§fn clone(&self) -> StreamShape
fn clone(&self) -> StreamShape
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamShape
impl Debug for StreamShape
Source§impl PartialEq for StreamShape
impl PartialEq for StreamShape
impl Copy for StreamShape
impl Eq for StreamShape
impl StructuralPartialEq for StreamShape
Auto Trait Implementations§
impl Freeze for StreamShape
impl RefUnwindSafe for StreamShape
impl Send for StreamShape
impl Sync for StreamShape
impl Unpin for StreamShape
impl UnsafeUnpin for StreamShape
impl UnwindSafe for StreamShape
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