Weave documentation
Rust referenceweave-locus

weave-locus · mount

Source declarations, signatures and documentation for mount.

Reviewed implementation boundary: Rollback records a marker; mount descriptions and governance metadata alone do not execute mounting or enforce signature authorization. Operations can have separate metadata/blob failure points. See /libraries/locus/overview.

Source: sigil/weave/models/locus/src/mount.rs. SHA-256: 2c3bea129718daf2aa79d64ca05d3e0d0f38bfd354fdbf3b0f2c466e323800ce.

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.

mount::MountPoint

A mount point in the file system

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MountPoint {
/// Mount path

pub path: String,
/// Source locus (if external mount)

pub source: Option<MountSource>,
/// Mount options

pub options: MountOptions
}

Source line: 15.

mount::MountSource

Source of a mount

#[derive(Debug, Clone, Serialize, Deserialize)]
pub enum MountSource {
    /// Another locus instance
    Locus {
        /// Identity of the source locus
        identity: String,
    },
    /// External file system
    External {
        /// Type of external system
        fs_type: String,
        /// Connection parameters
        params: serde_json::Value,
    },
}

Source line: 28.

mount::MountTable

Mount table managing all mount points

#[derive(Clone)]
pub struct MountTable {

}

Source line: 45.

mount::MountTable::new

Create a new mount table

pub fn new() -> Self;

Source line: 52.

mount::MountTable::mount

Mount a file system at a path

pub fn mount(
        &self,
        path: String,
        source: Option<MountSource>,
        options: MountOptions,
    ) -> Result<()>;

Source line: 59.

mount::MountTable::unmount

Unmount a file system

pub fn unmount(&self, path: &str) -> Result<()>;

Source line: 89.

mount::MountTable::find_mount

Find the mount point for a path

pub fn find_mount(&self, path: &str) -> Option<MountPoint>;

Source line: 101.

mount::MountTable::list_mounts

List all mount points

pub fn list_mounts(&self) -> Vec<MountPoint>;

Source line: 124.

mount::MountTable::is_mount_point

Check if a path is a mount point

pub fn is_mount_point(&self, path: &str) -> bool;

Source line: 129.

On this page