pub struct ServeSession {
pub receive_hook: Option<Arc<dyn ReceiveHook + Send + Sync>>,
pub cancel: Option<Arc<CancelToken>>,
}Expand description
Hooks and cancellation for one upload-pack or receive-pack exchange.
Fields§
§receive_hook: Option<Arc<dyn ReceiveHook + Send + Sync>>In-process receive-pack checks alongside crate::PushGuard.
cancel: Option<Arc<CancelToken>>When set, long-running serve work stops without moving refs on push.
Implementations§
Source§impl ServeSession
impl ServeSession
Trait Implementations§
Source§impl Clone for ServeSession
impl Clone for ServeSession
Auto Trait Implementations§
impl !RefUnwindSafe for ServeSession
impl !UnwindSafe for ServeSession
impl Forget for ServeSession
impl Freeze for ServeSession
impl Send for ServeSession
impl Sync for ServeSession
impl Unpin for ServeSession
impl UnsafeUnpin for ServeSession
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