Skip to main content

DaemonOptions

Struct DaemonOptions 

Source
pub struct DaemonOptions {
Show 15 fields pub base_path: Option<PathBuf>, pub base_path_relaxed: bool, pub whitelist: Vec<PathBuf>, pub strict_paths: bool, pub user_path: Option<String>, pub interpolated_path: Option<String>, pub export_all: bool, pub services: ServiceTable, pub informative_errors: bool, pub access_hook: Option<PathBuf>, pub timeout_secs: u64, pub init_timeout_secs: u64, pub max_connections: usize, pub log: DaemonLog, pub platform: Arc<dyn DaemonPlatform>,
}
Expand description

Request-serving options of git daemon (everything except socket setup and process control, which the CLI owns).

Fields§

§base_path: Option<PathBuf>

--base-path=<path>: prefix for every absolute request path.

§base_path_relaxed: bool

--base-path-relaxed: retry the raw request path when the prefixed one fails.

§whitelist: Vec<PathBuf>

<directory>...: whitelist compared with the validated repository path.

§strict_paths: bool

--strict-paths: no suffix guessing; the whitelist must match exactly.

§user_path: Option<String>

--user-path (Some("")) or --user-path=<path> (Some(path)).

§interpolated_path: Option<String>

--interpolated-path=<pathtemplate>.

§export_all: bool

--export-all: skip the git-daemon-export-ok check.

§services: ServiceTable

--enable/--disable/--allow-override/--forbid-override.

§informative_errors: bool

--[no-]informative-errors.

§access_hook: Option<PathBuf>

--access-hook=<path>.

§timeout_secs: u64

--timeout=<n> seconds for pack sub-requests (0 = none).

§init_timeout_secs: u64

--init-timeout=<n> seconds until the request line arrives (0 = none).

§max_connections: usize

--max-connections=<n> (0 = unlimited; git default 32).

§log: DaemonLog

Log destination and --verbose.

§platform: Arc<dyn DaemonPlatform>

OS lookups (home directories, host names).

Trait Implementations§

Source§

impl Clone for DaemonOptions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DaemonOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DaemonOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for DaemonOptions

§

impl !UnwindSafe for DaemonOptions

§

impl Forget for DaemonOptions

§

impl Freeze for DaemonOptions
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, PhantomData<PathBuf>: Freeze, *const ArcInner<Mutex<Sink>> is !null: Freeze, PhantomData<ArcInner<Mutex<Sink>>>: Freeze, *const ArcInner<dyn DaemonPlatform> is !null: Freeze, PhantomData<ArcInner<dyn DaemonPlatform>>: Freeze,

§

impl Move for DaemonOptions

§

impl Send for DaemonOptions
where RawVecInner: Send, Arc<Mutex<Sink>>: Send, Arc<dyn DaemonPlatform>: Send,

§

impl Sync for DaemonOptions
where RawVecInner: Sync, Arc<Mutex<Sink>>: Sync, Arc<dyn DaemonPlatform>: Sync,

§

impl Unpin for DaemonOptions
where *const u8 is !null: Unpin, Arc<Mutex<Sink>>: Unpin, Arc<dyn DaemonPlatform>: Unpin,

§

impl UnsafeUnpin for DaemonOptions
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<PathBuf>: UnsafeUnpin, *const ArcInner<Mutex<Sink>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Sink>>>: UnsafeUnpin, *const ArcInner<dyn DaemonPlatform> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn DaemonPlatform>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.