pub struct DropEnvelope {Show 17 fields
pub protocol_version: u16,
pub object_id: ObjectId,
pub source: PeerId,
pub destination: Destination,
pub creation_time: u64,
pub expiration: u64,
pub priority: Priority,
pub hop_limit: u8,
pub hop_count: u8,
pub payload_descriptor: PayloadDescriptor,
pub routing_policy: RoutingPolicy,
pub security_descriptor: SecurityDescriptor,
pub application: String,
pub topic: Option<String>,
pub extensions: Vec<Extension>,
pub author_pk: [u8; 32],
pub signature: [u8; 64],
}Fields§
§protocol_version: u16§object_id: ObjectId§source: PeerId§destination: Destination§creation_time: u64§expiration: u64§priority: Priority§hop_limit: u8§hop_count: u8§payload_descriptor: PayloadDescriptor§routing_policy: RoutingPolicy§security_descriptor: SecurityDescriptor§application: String§topic: Option<String>§extensions: Vec<Extension>§signature: [u8; 64]Implementations§
Source§impl DropEnvelope
impl DropEnvelope
pub fn remaining_hops(&self) -> u8
pub fn is_expired(&self, now: u64) -> bool
pub fn validate_extension_count(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for DropEnvelope
impl Clone for DropEnvelope
Source§fn clone(&self) -> DropEnvelope
fn clone(&self) -> DropEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DropEnvelope
impl Debug for DropEnvelope
Source§impl<'de> Deserialize<'de> for DropEnvelope
impl<'de> Deserialize<'de> for DropEnvelope
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
Source§impl PartialEq for DropEnvelope
impl PartialEq for DropEnvelope
Source§impl Serialize for DropEnvelope
impl Serialize for DropEnvelope
impl StructuralPartialEq for DropEnvelope
Auto Trait Implementations§
impl Freeze for DropEnvelope
impl RefUnwindSafe for DropEnvelope
impl Send for DropEnvelope
impl Sync for DropEnvelope
impl Unpin for DropEnvelope
impl UnsafeUnpin for DropEnvelope
impl UnwindSafe for DropEnvelope
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