pub struct Outcome<'a> {
pub capabilities: Capabilities,
pub refs: Option<Box<dyn ReadlineBufRead + 'a>>,
pub protocol: Protocol,
}
Available on crate feature
blocking-client
only.Expand description
Success outcome of Capabilities::from_lines_with_version_detection
.
Fields§
§capabilities: Capabilities
The Capabilities
the remote advertised.
refs: Option<Box<dyn ReadlineBufRead + '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§
impl<'a> Freeze for Outcome<'a>
impl<'a> !RefUnwindSafe for Outcome<'a>
impl<'a> !Send for Outcome<'a>
impl<'a> !Sync for Outcome<'a>
impl<'a> Unpin for Outcome<'a>
impl<'a> !UnwindSafe for Outcome<'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