Struct gix_protocol::fetch::response::Response
source · pub struct Response { /* private fields */ }
Available on crate features
blocking-client
or async-client
only.Expand description
A representation of a complete fetch response
Implementations§
source§impl Response
impl Response
sourcepub fn from_line_reader(
version: Protocol,
reader: &mut impl ExtendedBufRead
) -> Result<Response, Error>
Available on crate feature blocking-client
only.
pub fn from_line_reader( version: Protocol, reader: &mut impl ExtendedBufRead ) -> Result<Response, Error>
blocking-client
only.Parse a response of the given version
of the protocol from reader
.
source§impl Response
impl Response
sourcepub fn check_required_features(
version: Protocol,
features: &[Feature]
) -> Result<(), Error>
pub fn check_required_features( version: Protocol, features: &[Feature] ) -> 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.
sourcepub fn acknowledgements(&self) -> &[Acknowledgement]
pub fn acknowledgements(&self) -> &[Acknowledgement]
Return all acknowledgements parsed previously.
sourcepub fn shallow_updates(&self) -> &[ShallowUpdate]
pub fn shallow_updates(&self) -> &[ShallowUpdate]
Return all shallow update lines parsed previously.
sourcepub fn wanted_refs(&self) -> &[WantedRef]
pub fn wanted_refs(&self) -> &[WantedRef]
Return all wanted-refs parsed previously.