pub struct ConnectOptions {
pub uid: Option<u32>,
pub gid: Option<u32>,
pub uname: Option<String>,
pub aname: String,
pub msize: u32,
pub connect_timeout_ms: Option<u32>,
}Expand description
Options for crate::Client::connect_with. Defaults are representable in
UniFFI records. Rust resolves None identity fields during connect.
The API has no per-operation timeout. Cancellation reclaims temporary operation resources but does not revoke a dispatched mutation.
Fields§
§uid: Option<u32>Numeric uid asserted at attach (None = process euid natively, 0 in a
browser); the server enforces permissions as this user.
gid: Option<u32>Group assigned to files/directories created through this client
(None = process egid natively, 0 in a browser).
uname: Option<String>Username string sent at attach (None = $USER, else the uid rendered
as text); informational; uid is authoritative.
aname: StringAttach name (export selector); empty selects the default export.
msize: u32Requested 9P message size; the negotiated value appears in Capabilities.
connect_timeout_ms: Option<u32>Bound on the initial connect+attach; expiry surfaces as
crate::ZeroFsError::ConnectFailed. None = wait indefinitely.
Trait Implementations§
Source§impl Clone for ConnectOptions
impl Clone for ConnectOptions
Source§fn clone(&self) -> ConnectOptions
fn clone(&self) -> ConnectOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more