pub struct Mapper { /* private fields */ }Implementations§
Source§impl Mapper
impl Mapper
pub fn submission(&mut self) -> Result<Submission<'_>, Error>
Source§impl Mapper
impl Mapper
pub fn new(runtime: RuntimeId) -> Self
pub fn tree(&self) -> &Memory
Sourcepub fn admit_file_action(&mut self, action: Action) -> Result<(), Error>
pub fn admit_file_action(&mut self, action: Action) -> Result<(), Error>
Admit a host action identity without exposing mutable descriptors.
pub fn finish_files( &mut self, node: NodeId, document: FileDocumentId, event: &FileEvent, ) -> Result<bool, Error>
pub fn admit_clipboard(&mut self, action: Action) -> Result<(), Error>
pub fn finish_clipboard( &mut self, node: NodeId, request: u64, revision: u64, ) -> Result<bool, Error>
pub fn key(&self, id: NodeId) -> Option<u64>
Sourcepub fn receipt(&self) -> Receipt
pub fn receipt(&self) -> Receipt
Last successful prefix, including when a later mutation failed.
pub fn html(&self) -> Result<String, Error>
Sourcepub fn canonicalize(&mut self) -> Result<Vec<(u64, u64)>, Error>
pub fn canonicalize(&mut self) -> Result<Vec<(u64, u64)>, Error>
Final snapshot keys follow the logical tree, independent of asynchronous completion/creation order. Hidden/unplaced nodes get unique trailing keys; only visible tree keys participate in HTML adoption. A streaming consumer uses the returned pairs to relabel metadata without remounting.
pub fn apply( &mut self, mutations: &[Mutation], sink: &mut impl Sink, ) -> Result<Receipt, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for Mapper
impl !Send for Mapper
impl !Sync for Mapper
impl !UnwindSafe for Mapper
impl Forget for Mapper
impl Freeze for Mapperwhere
*const u8 is !null: Freeze,
PhantomData<Option<Box<[Option<(NodeId, Node)>]>>>: Freeze,
PhantomData<(usize, Box<[Option<(NodeId, Node)>]>)>: Freeze,
PhantomData<(SemanticId, NodeId)>: Freeze,
PhantomData<(u32, (u32, bool))>: Freeze,
PhantomData<NodeId>: Freeze,
*const Indexed is !null: Freeze,
PhantomData<Indexed>: Freeze,
PhantomData<Input>: Freeze,
*const LeafNode<NodeId, usize> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(NodeId, usize)>>: Freeze,
PhantomData<(NodeId, u64)>: Freeze,
PhantomData<(usize, (WeakPlan, Rc<PlanShape>))>: Freeze,
impl Move for Mapper
impl Unpin for Mapperwhere
*const u8 is !null: Unpin,
Box<[Option<(NodeId, Node)>]>: Unpin,
Box<Indexed>: Unpin,
Box<RichSnapshot>: Unpin,
Box<FileEvent>: Unpin,
Box<FileChunk>: Unpin,
Box<FilePreview>: Unpin,
&'static str: Unpin,
*const LeafNode<NodeId, usize> is !null: Unpin,
Box<(NodeId, usize)>: Unpin,
*const RcInner<Declaration> is !null: Unpin,
Rc<PlanShape>: Unpin,
impl UnsafeUnpin for Mapperwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Option<Box<[Option<(NodeId, Node)>]>>>: UnsafeUnpin,
PhantomData<(usize, Box<[Option<(NodeId, Node)>]>)>: UnsafeUnpin,
PhantomData<(SemanticId, NodeId)>: UnsafeUnpin,
PhantomData<(u32, (u32, bool))>: UnsafeUnpin,
PhantomData<NodeId>: UnsafeUnpin,
*const Indexed is !null: UnsafeUnpin,
PhantomData<Indexed>: UnsafeUnpin,
PhantomData<Input>: UnsafeUnpin,
*const LeafNode<NodeId, usize> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(NodeId, usize)>>: UnsafeUnpin,
PhantomData<(NodeId, u64)>: UnsafeUnpin,
PhantomData<(usize, (WeakPlan, Rc<PlanShape>))>: UnsafeUnpin,
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