pub struct ServiceTable {
pub upload_pack: ServicePolicy,
pub upload_archive: ServicePolicy,
pub receive_pack: ServicePolicy,
}Expand description
Site-wide policy of every service (git defaults: only upload-pack enabled, every service overridable).
Fields§
§upload_pack: ServicePolicy§upload_archive: ServicePolicy§receive_pack: ServicePolicyImplementations§
Source§impl ServiceTable
impl ServiceTable
pub fn get(&self, service: DaemonService) -> ServicePolicy
pub fn get_mut(&mut self, service: DaemonService) -> &mut ServicePolicy
Trait Implementations§
Source§impl Clone for ServiceTable
impl Clone for ServiceTable
impl Copy for ServiceTable
Source§impl Debug for ServiceTable
impl Debug for ServiceTable
Source§impl Default for ServiceTable
impl Default for ServiceTable
impl Eq for ServiceTable
Source§impl PartialEq for ServiceTable
impl PartialEq for ServiceTable
impl StructuralPartialEq for ServiceTable
Auto Trait Implementations§
impl Forget for ServiceTable
impl Freeze for ServiceTable
impl Move for ServiceTable
impl RefUnwindSafe for ServiceTable
impl Send for ServiceTable
impl Sync for ServiceTable
impl Unpin for ServiceTable
impl UnsafeUnpin for ServiceTable
impl UnwindSafe for ServiceTable
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