pub struct GitSnapshotKeepaliveRef(/* private fields */);Expand description
Exact local keepalive ref for one snapshot operation.
Implementations§
Source§impl GitSnapshotKeepaliveRef
impl GitSnapshotKeepaliveRef
Sourcepub fn for_operation(operation_id: &str) -> Result<Self, GitSnapshotError>
pub fn for_operation(operation_id: &str) -> Result<Self, GitSnapshotError>
Derive the only accepted keepalive ref for operation_id.
§Errors
Returns GitSnapshotError::InvalidOperation for a non-ref-safe operation identifier.
Trait Implementations§
Source§impl Clone for GitSnapshotKeepaliveRef
impl Clone for GitSnapshotKeepaliveRef
Source§impl Debug for GitSnapshotKeepaliveRef
impl Debug for GitSnapshotKeepaliveRef
Source§impl<'de> Deserialize<'de> for GitSnapshotKeepaliveRef
impl<'de> Deserialize<'de> for GitSnapshotKeepaliveRef
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
impl Eq for GitSnapshotKeepaliveRef
Source§impl Ord for GitSnapshotKeepaliveRef
impl Ord for GitSnapshotKeepaliveRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GitSnapshotKeepaliveRef
impl PartialEq for GitSnapshotKeepaliveRef
Source§impl PartialOrd for GitSnapshotKeepaliveRef
impl PartialOrd for GitSnapshotKeepaliveRef
Source§impl Serialize for GitSnapshotKeepaliveRef
impl Serialize for GitSnapshotKeepaliveRef
impl StructuralPartialEq for GitSnapshotKeepaliveRef
Auto Trait Implementations§
impl Freeze for GitSnapshotKeepaliveRef
impl RefUnwindSafe for GitSnapshotKeepaliveRef
impl Send for GitSnapshotKeepaliveRef
impl Sync for GitSnapshotKeepaliveRef
impl Unpin for GitSnapshotKeepaliveRef
impl UnsafeUnpin for GitSnapshotKeepaliveRef
impl UnwindSafe for GitSnapshotKeepaliveRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.