Weave documentation
Rust referenceweave-agentfs-mirror

weave-agentfs-mirror · mirror

Source declarations, signatures and documentation for mirror.

Reviewed implementation boundary: The mirror plan executor contains NotImplemented paths. A generated plan is not a successfully synchronized remote filesystem. See /libraries/agentfs-mirror/overview.

Source: sigil/weave/local/agentfs-mirror/src/mirror.rs. SHA-256: 2d133842a31ea1d85f36f5b01e32087e50f11073f4caa81a6c9bc1775389048d.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

mirror::Mirror

Mirror for bidirectional synchronization

pub struct Mirror {

}

Source line: 19.

mirror::Mirror::new

Create new mirror

pub fn new(
        source: Arc<dyn FileSystem>,
        target: Arc<dyn FileSystem>,
        options: MirrorOptions,
    ) -> Self;

Source line: 38.

mirror::Mirror::sync

Perform one-time sync

pub async fn sync(&self) -> Result<SyncStats>;

Source line: 65.

mirror::Mirror::watch

Start watching for changes

pub async fn watch(&mut self) -> Result<()>;

Source line: 98.

mirror::Mirror::stop_watch

Stop watching

pub fn stop_watch(&mut self);

Source line: 124.

mirror::Mirror::watch_receiver

Get watch event receiver

pub fn watch_receiver(
        &mut self,
    ) -> Option<tokio::sync::mpsc::UnboundedReceiver<crate::watcher::WatchEvent>>;

Source line: 131.

mirror::Mirror::source

Get source file system

pub fn source(&self) -> &Arc<dyn FileSystem>;

Source line: 138.

mirror::Mirror::target

Get target file system

pub fn target(&self) -> &Arc<dyn FileSystem>;

Source line: 143.

On this page