pub enum DaemonService {
UploadPack,
UploadArchive,
ReceivePack,
}Expand description
A git:// service the daemon can run.
Variants§
Implementations§
Source§impl DaemonService
impl DaemonService
pub const ALL: [Self; 3]
Sourcepub fn config_key(self) -> &'static str
pub fn config_key(self) -> &'static str
Per-repository override key (daemon.<service> in the repository config).
pub fn from_name(name: &str) -> Option<Self>
Sourcepub fn from_request(command: &str) -> Option<Self>
pub fn from_request(command: &str) -> Option<Self>
Service named by a request line command (git-upload-pack).
Trait Implementations§
Source§impl Clone for DaemonService
impl Clone for DaemonService
impl Copy for DaemonService
Source§impl Debug for DaemonService
impl Debug for DaemonService
impl Eq for DaemonService
Source§impl PartialEq for DaemonService
impl PartialEq for DaemonService
impl StructuralPartialEq for DaemonService
Auto Trait Implementations§
impl Forget for DaemonService
impl Freeze for DaemonService
impl Move for DaemonService
impl RefUnwindSafe for DaemonService
impl Send for DaemonService
impl Sync for DaemonService
impl Unpin for DaemonService
impl UnsafeUnpin for DaemonService
impl UnwindSafe for DaemonService
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