pub struct Outcome<'a> {
    pub capabilities: Capabilities,
    pub refs: Option<Box<dyn BufRead + 'a>>,
    pub protocol: Protocol,
}
Expand description

Fields

capabilities: Capabilities

The Capabilities the remote advertised.

refs: Option<Box<dyn BufRead + 'a>>

The remote refs as a io::BufRead.

This is Some only when protocol v1 is used. The io::BufRead must be exhausted by the caller.

protocol: Protocol

The Protocol the remote advertised.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.