pub struct Request<'a> { /* private fields */ }Expand description
A complete validated control body; storage is borrowed, not copied. Revisit its objects without an object-count array. Bound bytes before parsing it.
Implementations§
Source§impl<'a> Request<'a>
impl<'a> Request<'a>
pub fn parse(body: &'a [u8], format: ObjectFormat, version: u8) -> Result<Self>
pub fn command(&self) -> Command
pub fn done(&self) -> bool
pub fn options(&self) -> Option<FetchOptions>
pub fn require_complete(&self) -> Result<()>
Sourcepub fn ofs_delta(&self) -> bool
pub fn ofs_delta(&self) -> bool
Whether the client permits offset delta entries in the response pack.
pub fn band(&self) -> u8
pub fn objects(&self) -> Objects<'a> ⓘ
pub fn acknowledgments(&self) -> Result<Acknowledgments>
pub fn shallow_updates(&self) -> Result<ShallowUpdates>
pub fn reference( &self, id: Option<ObjectId>, name: &[u8], symbolic: Option<&[u8]>, peeled: Option<ObjectId>, output: &mut impl Write, ) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnsafeUnpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
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