pub struct DatagramOptions {
pub sequence: Option<TempSeq>,
pub author_id: Option<DeviceId>,
pub create_time: Option<Timestamp>,
pub send_time: Option<Timestamp>,
pub plaintext: bool,
}
Fields§
§sequence: Option<TempSeq>
§create_time: Option<Timestamp>
§send_time: Option<Timestamp>
§plaintext: bool
Trait Implementations§
Source§impl Clone for DatagramOptions
impl Clone for DatagramOptions
Source§fn clone(&self) -> DatagramOptions
fn clone(&self) -> DatagramOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for DatagramOptions
impl Default for DatagramOptions
Source§impl<'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>
Source§impl<'de> RawDecodeWithContext<'de, &DatagramOptions> for RespInterest
impl<'de> RawDecodeWithContext<'de, &DatagramOptions> for RespInterest
fn raw_decode_with_context( buf: &'de [u8], options: &DatagramOptions, ) -> Result<(Self, &'de [u8]), BuckyError>
Source§impl 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<'a>( &self, buf: &'a mut [u8], context: &mut Context, purpose: &Option<RawEncodePurpose>, ) -> Result<&'a [u8], BuckyError>
Source§impl RawEncodeWithContext<DatagramOptions> for RespInterest
impl RawEncodeWithContext<DatagramOptions> for RespInterest
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<'a>( &self, buf: &'a mut [u8], context: &mut Context, purpose: &Option<RawEncodePurpose>, ) -> Result<&'a [u8], BuckyError>
Auto Trait Implementations§
impl Freeze for DatagramOptions
impl RefUnwindSafe for DatagramOptions
impl Send for DatagramOptions
impl Sync for DatagramOptions
impl Unpin for DatagramOptions
impl UnwindSafe for DatagramOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more