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 Mapper
impl Move for Mapper
impl Unpin for Mapper
impl UnsafeUnpin for Mapper
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