pub struct DhtArgs {
pub id: Option<ByteBuf>,
pub target: Option<ByteBuf>,
pub info_hash: Option<ByteBuf>,
pub token: Option<ByteBuf>,
pub port: Option<u16>,
pub implied_port: Option<u8>,
}Fields§
§id: Option<ByteBuf>§target: Option<ByteBuf>§info_hash: Option<ByteBuf>§token: Option<ByteBuf>§port: Option<u16>§implied_port: Option<u8>Trait Implementations§
Source§impl<'de> Deserialize<'de> for DhtArgs
impl<'de> Deserialize<'de> for DhtArgs
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 DhtArgs
impl RefUnwindSafe for DhtArgs
impl Send for DhtArgs
impl Sync for DhtArgs
impl Unpin for DhtArgs
impl UnwindSafe for DhtArgs
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