pub struct PushUpdate<'a> { /* private fields */ }Expand description
Represents an update which will be performed on the remote during push.
Implementations§
Source§impl PushUpdate<'_>
impl PushUpdate<'_>
Sourcepub fn src_refname_bytes(&self) -> &[u8] ⓘ
pub fn src_refname_bytes(&self) -> &[u8] ⓘ
Returns the source name of the reference as a byte slice.
Sourcepub fn src_refname(&self) -> Result<&str, Error>
pub fn src_refname(&self) -> Result<&str, Error>
Returns the source name of the reference.
Sourcepub fn dst_refname_bytes(&self) -> &[u8] ⓘ
pub fn dst_refname_bytes(&self) -> &[u8] ⓘ
Returns the name of the reference to update on the server as a byte slice.
Sourcepub fn dst_refname(&self) -> Result<&str, Error>
pub fn dst_refname(&self) -> Result<&str, Error>
Returns the name of the reference to update on the server.
Trait Implementations§
Source§impl<'a> Binding for PushUpdate<'a>
impl<'a> Binding for PushUpdate<'a>
Source§type Raw = *const git_push_update
type Raw = *const git_push_update
The raw type that allows you to interact with libgit2-sys.
Source§unsafe fn from_raw(raw: *const git_push_update) -> PushUpdate<'a>
unsafe fn from_raw(raw: *const git_push_update) -> PushUpdate<'a>
Build a git2 struct from its Binding::Raw value.
Source§unsafe fn from_raw_opt<T>(raw: T) -> Option<Self>
unsafe fn from_raw_opt<T>(raw: T) -> Option<Self>
A null-handling version of Binding::from_raw. Read more
Auto Trait Implementations§
impl<'a> Freeze for PushUpdate<'a>
impl<'a> RefUnwindSafe for PushUpdate<'a>
impl<'a> !Send for PushUpdate<'a>
impl<'a> !Sync for PushUpdate<'a>
impl<'a> Unpin for PushUpdate<'a>
impl<'a> UnsafeUnpin for PushUpdate<'a>
impl<'a> UnwindSafe for PushUpdate<'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