pub struct RespInterest {
pub session_id: TempSeq,
pub chunk: ChunkId,
pub err: BuckyErrorCode,
pub redirect: Option<DeviceId>,
pub redirect_referer: Option<String>,
pub to: Option<DeviceId>,
}Fields
session_id: TempSeqchunk: ChunkIderr: BuckyErrorCoderedirect: Option<DeviceId>redirect_referer: Option<String>to: Option<DeviceId>Trait Implementations
sourceimpl Clone for RespInterest
impl Clone for RespInterest
sourcefn clone(&self) -> RespInterest
fn clone(&self) -> RespInterest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RespInterest
impl Debug for RespInterest
sourceimpl JsonCodec<RespInterest> for RespInterest
impl JsonCodec<RespInterest> for RespInterest
fn encode_json(&self) -> Map<String, Value>
fn decode_json(obj: &Map<String, Value>) -> BuckyResult<Self>
fn encode_string(&self) -> String
fn decode_string(value: &str) -> Result<T, BuckyError>
fn decode_value(value: &Value) -> Result<T, BuckyError>
fn encode_value(&self) -> Value
sourceimpl<'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>
sourceimpl 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(
&self,
buf: &'a mut [u8],
context: &mut Context,
purpose: &Option<RawEncodePurpose>
) -> Result<&'a [u8], BuckyError>
Auto Trait Implementations
impl RefUnwindSafe for RespInterest
impl Send for RespInterest
impl Sync for RespInterest
impl Unpin for RespInterest
impl UnwindSafe for RespInterest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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