pub struct LsRefsCommand<'a> { /* private fields */ }Available on crate features
blocking-client or async-client only.Expand description
A command to list references from a remote Git repository.
It acts as a utility to separate the invocation into the shared blocking portion,
and the one that performs IO either blocking or async.
Implementations§
Source§impl<'a> LsRefsCommand<'a>
impl<'a> LsRefsCommand<'a>
Sourcepub fn new(
prefix_refspecs: Option<&[RefSpec]>,
capabilities: &'a Capabilities,
agent: (&'static str, Option<Cow<'static, str>>),
) -> Self
pub fn new( prefix_refspecs: Option<&[RefSpec]>, capabilities: &'a Capabilities, agent: (&'static str, Option<Cow<'static, str>>), ) -> Self
Build a command to list refs from the given server capabilities,
using agent information to identify ourselves.
Sourcepub fn invoke_blocking(
self,
transport: impl Transport,
progress: &mut impl Progress,
trace: bool,
) -> Result<Vec<Ref>, Error>
Available on crate feature blocking-client only.
pub fn invoke_blocking( self, transport: impl Transport, progress: &mut impl Progress, trace: bool, ) -> Result<Vec<Ref>, Error>
blocking-client only.Invoke a ls-refs V2 command on transport.
progress is used to provide feedback.
If trace is true, all packetlines received or sent will be passed to the facilities of the gix-trace crate.
Auto Trait Implementations§
impl<'a> Freeze for LsRefsCommand<'a>
impl<'a> RefUnwindSafe for LsRefsCommand<'a>
impl<'a> Send for LsRefsCommand<'a>
impl<'a> Sync for LsRefsCommand<'a>
impl<'a> Unpin for LsRefsCommand<'a>
impl<'a> UnwindSafe for LsRefsCommand<'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