pub struct Interest {
pub session_id: TempSeq,
pub chunk: ChunkId,
pub prefer_type: PieceSessionType,
pub referer: Option<String>,
}Fields
session_id: TempSeqchunk: ChunkIdprefer_type: PieceSessionTypereferer: Option<String>Trait Implementations
sourceimpl<'de> RawDecodeWithContext<'de, &'_ DatagramOptions> for Interest
impl<'de> RawDecodeWithContext<'de, &'_ DatagramOptions> for Interest
fn raw_decode_with_context(
buf: &'de [u8],
options: &DatagramOptions
) -> Result<(Self, &'de [u8]), BuckyError>
sourceimpl RawEncodeWithContext<DatagramOptions> for Interest
impl RawEncodeWithContext<DatagramOptions> for Interest
fn raw_measure_with_context(
&self,
_options: &mut DatagramOptions,
_purpose: &Option<RawEncodePurpose>
) -> Result<usize, BuckyError>
fn raw_encode_with_context<'a>(
&self,
enc_buf: &'a mut [u8],
options: &mut DatagramOptions,
_purpose: &Option<RawEncodePurpose>
) -> Result<&'a mut [u8], BuckyError>
fn raw_tail_encode_with_context(
&self,
buf: &'a mut [u8],
context: &mut Context,
purpose: &Option<RawEncodePurpose>
) -> Result<&'a [u8], BuckyError>
Auto Trait Implementations
impl RefUnwindSafe for Interest
impl Send for Interest
impl Sync for Interest
impl Unpin for Interest
impl UnwindSafe for Interest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more