pub struct ParticleParameters<'ctx> {
pub init_peer_id: Cow<'ctx, str>,
pub particle_id: Cow<'ctx, str>,
pub timestamp: u64,
pub ttl: u32,
pub current_peer_id: Cow<'ctx, str>,
}
Expand description
Represents parameters obtained from a particle.
Fields§
§init_peer_id: Cow<'ctx, str>
§particle_id: Cow<'ctx, str>
§timestamp: u64
§ttl: u32
§current_peer_id: Cow<'ctx, str>
Implementations§
Trait Implementations§
Source§impl<'ctx> Clone for ParticleParameters<'ctx>
impl<'ctx> Clone for ParticleParameters<'ctx>
Source§fn clone(&self) -> ParticleParameters<'ctx>
fn clone(&self) -> ParticleParameters<'ctx>
Returns a copy 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<'ctx> Debug for ParticleParameters<'ctx>
impl<'ctx> Debug for ParticleParameters<'ctx>
Source§impl<'de, 'ctx> Deserialize<'de> for ParticleParameters<'ctx>
impl<'de, 'ctx> Deserialize<'de> for ParticleParameters<'ctx>
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<'ctx> Freeze for ParticleParameters<'ctx>
impl<'ctx> RefUnwindSafe for ParticleParameters<'ctx>
impl<'ctx> Send for ParticleParameters<'ctx>
impl<'ctx> Sync for ParticleParameters<'ctx>
impl<'ctx> Unpin for ParticleParameters<'ctx>
impl<'ctx> UnwindSafe for ParticleParameters<'ctx>
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