pub enum GitSyncResponse {
Refs(Vec<(String, String)>),
Objects(Vec<u8>),
}Expand description
A response sent over the P2P network in response to a GitSyncRequest.
Variants§
Refs(Vec<(String, String)>)
A list of refs available on the peer.
Objects(Vec<u8>)
A binary packfile containing the requested Git objects.
Trait Implementations§
Source§impl Clone for GitSyncResponse
impl Clone for GitSyncResponse
Source§fn clone(&self) -> GitSyncResponse
fn clone(&self) -> GitSyncResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GitSyncResponse
impl Debug for GitSyncResponse
Source§impl<'de> Deserialize<'de> for GitSyncResponse
impl<'de> Deserialize<'de> for GitSyncResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GitSyncResponse
impl RefUnwindSafe for GitSyncResponse
impl Send for GitSyncResponse
impl Sync for GitSyncResponse
impl Unpin for GitSyncResponse
impl UnsafeUnpin for GitSyncResponse
impl UnwindSafe for GitSyncResponse
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