pub struct Dht { /* private fields */ }Implementations§
Source§impl Dht
impl Dht
pub fn new() -> Self
pub async fn get( &self, pub_key: VerifyingKey, salt: Option<Vec<u8>>, more_recent_then: Option<i64>, timeout: Duration, ) -> Result<Vec<MutableItem>>
pub async fn put_mutable( &self, signing_key: SigningKey, pub_key: VerifyingKey, salt: Option<Vec<u8>>, data: Vec<u8>, retry_count: Option<usize>, timeout: Duration, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dht
impl RefUnwindSafe for Dht
impl Send for Dht
impl Sync for Dht
impl Unpin for Dht
impl UnwindSafe for Dht
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