pub enum PutRequestSpecific {
AnnouncePeer(AnnouncePeerRequestArguments),
AnnounceSignedPeer(AnnounceSignedPeerRequestArguments),
PutImmutable(PutImmutableRequestArguments),
PutMutable(PutMutableRequestArguments),
}Expand description
The kind of storage request, with operation-specific arguments.
This is the parameter passed to Dht::put for low-level
access. The high-level wrappers (Dht::put_immutable,
Dht::put_mutable,
Dht::announce_peer) construct one of these
internally.
Variants§
AnnouncePeer(AnnouncePeerRequestArguments)
Announce that the sender is a peer for an info hash (BEP_0005).
AnnounceSignedPeer(AnnounceSignedPeerRequestArguments)
Announce a signed peer for an info hash (proposed signed-peers BEP).
PutImmutable(PutImmutableRequestArguments)
Store an immutable value, addressed by its sha1 hash (BEP_0044).
PutMutable(PutMutableRequestArguments)
Store a mutable value, addressed by an ed25519 public key (and optional salt) (BEP_0044).
Implementations§
Trait Implementations§
Source§impl Clone for PutRequestSpecific
impl Clone for PutRequestSpecific
Source§fn clone(&self) -> PutRequestSpecific
fn clone(&self) -> PutRequestSpecific
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 PutRequestSpecific
impl Debug for PutRequestSpecific
Source§impl PartialEq for PutRequestSpecific
impl PartialEq for PutRequestSpecific
Source§fn eq(&self, other: &PutRequestSpecific) -> bool
fn eq(&self, other: &PutRequestSpecific) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PutRequestSpecific
Auto Trait Implementations§
impl Freeze for PutRequestSpecific
impl RefUnwindSafe for PutRequestSpecific
impl Send for PutRequestSpecific
impl Sync for PutRequestSpecific
impl Unpin for PutRequestSpecific
impl UnsafeUnpin for PutRequestSpecific
impl UnwindSafe for PutRequestSpecific
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