Struct git_protocol::fetch::response::Response[][src]

pub struct Response { /* fields omitted */ }

A representation of a complete fetch response

Implementations

impl Response[src]

pub fn has_pack(&self) -> bool[src]

Return true if the response has a pack which can be read next.

pub fn check_required_features(
    version: Protocol,
    features: &[(&'static str, Option<&'static str>)]
) -> Result<(), Error>
[src]

Return an error if the given features don’t contain the required ones 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 from_line_reader(
    version: Protocol,
    reader: &mut impl ExtendedBufRead
) -> Result<Response, Error>
[src]

Parse a response of the given version of the protocol from reader.

pub fn acknowledgements(&self) -> &[Acknowledgement][src]

Return all acknowledgements parsed previously.

pub fn shallow_updates(&self) -> &[ShallowUpdate][src]

Return all shallow update lines parsed previously.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.