Struct gitoxide_core::pack::receive::Response
pub struct Response { /* private fields */ }Available on crate features
async-client or blocking-client only.Expand description
A representation of a complete fetch response
Implementations§
§impl Response
impl Response
pub fn check_required_features(
version: Protocol,
features: &[(&'static str, Option<Cow<'static, str>>)]
) -> Result<(), Error>
pub fn check_required_features( version: Protocol, features: &[(&'static str, Option<Cow<'static, str>>)] ) -> Result<(), Error>
Return an error if the given features don’t contain the required ones (the ones this implementation needs)
for the given version of the protocol.
Even though technically any set of features supported by the server could work, we only implement the ones that make it easy to maintain all versions with a single code base that aims to be and remain maintainable.
pub fn acknowledgements(&self) -> &[Acknowledgement]
pub fn acknowledgements(&self) -> &[Acknowledgement]
Return all acknowledgements parsed previously.
pub fn shallow_updates(&self) -> &[ShallowUpdate]
pub fn shallow_updates(&self) -> &[ShallowUpdate]
Return all shallow update lines parsed previously.
pub fn wanted_refs(&self) -> &[WantedRef]
pub fn wanted_refs(&self) -> &[WantedRef]
Return all wanted-refs parsed previously.
§impl Response
impl Response
pub fn from_line_reader(
version: Protocol,
reader: &mut impl ExtendedBufRead
) -> Result<Response, Error>
pub fn from_line_reader( version: Protocol, reader: &mut impl ExtendedBufRead ) -> Result<Response, Error>
Parse a response of the given version of the protocol from reader.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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