Enum libp2p_kad::PutRecordContext
source · [−]pub enum PutRecordContext {
Publish,
Republish,
Replicate,
Cache,
}
Expand description
The context of a QueryInfo::PutRecord
query.
Variants
Publish
Republish
Replicate
Cache
Trait Implementations
sourceimpl Clone for PutRecordContext
impl Clone for PutRecordContext
sourcefn clone(&self) -> PutRecordContext
fn clone(&self) -> PutRecordContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PutRecordContext
impl Debug for PutRecordContext
sourceimpl PartialEq<PutRecordContext> for PutRecordContext
impl PartialEq<PutRecordContext> for PutRecordContext
impl Copy for PutRecordContext
impl Eq for PutRecordContext
impl StructuralEq for PutRecordContext
impl StructuralPartialEq for PutRecordContext
Auto Trait Implementations
impl RefUnwindSafe for PutRecordContext
impl Send for PutRecordContext
impl Sync for PutRecordContext
impl Unpin for PutRecordContext
impl UnwindSafe for PutRecordContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more