pub struct WaveVariantDef<V> {
pub id: WaveId,
pub session: Option<SessionId>,
pub variant: V,
pub agent: Agent,
pub handling: Handling,
pub scope: Scope,
pub from: Surface,
pub via: Option<Surface>,
pub hops: u16,
pub track: bool,
}Fields§
§id: WaveId§session: Option<SessionId>§variant: V§agent: Agent§handling: Handling§scope: Scope§from: Surface§via: Option<Surface>§hops: u16§track: boolImplementations§
Source§impl WaveVariantDef<SingularRipple>
impl WaveVariantDef<SingularRipple>
pub fn to_singular_ultra(self) -> SingularWave
pub fn to_multiple(self) -> WaveVariantDef<Ripple>
Source§impl WaveVariantDef<SingularRipple>
impl WaveVariantDef<SingularRipple>
pub fn as_multi(&self, recipients: Recipients) -> WaveVariantDef<Ripple>
Source§impl WaveVariantDef<Ripple>
impl WaveVariantDef<Ripple>
pub fn as_single(&self, surface: Surface) -> WaveVariantDef<SingularRipple>
pub fn to_singular_directed(self) -> Result<SingularDirectedWave, SpaceErr>
Source§impl WaveVariantDef<PingCore>
impl WaveVariantDef<PingCore>
pub fn to_singular_directed(self) -> SingularDirectedWave
pub fn with_core(self, core: DirectedCore) -> Self
Source§impl<V> WaveVariantDef<V>
impl<V> WaveVariantDef<V>
Source§impl WaveVariantDef<Ripple>
impl WaveVariantDef<Ripple>
pub fn to_wave(self) -> Wave
pub fn to_directed(self) -> DirectedWave
pub fn with_core(self, core: DirectedCore) -> Self
Source§impl<T> WaveVariantDef<RippleCoreDef<T>>where
T: ToRecipients + Clone,
impl<T> WaveVariantDef<RippleCoreDef<T>>where
T: ToRecipients + Clone,
Source§impl WaveVariantDef<SignalCore>
impl WaveVariantDef<SignalCore>
pub fn to_wave(self) -> Wave
pub fn to_directed(self) -> DirectedWave
pub fn with_core(self, core: DirectedCore) -> Self
pub fn wrap_in_hop(self, from: Surface, to: Surface) -> DirectedProto
pub fn unwrap_from_hop(self) -> Result<WaveVariantDef<SignalCore>, SpaceErr>
pub fn unwrap_from_transport(self) -> Result<Wave, SpaceErr>
pub fn to_singular_directed(self) -> SingularDirectedWave
Source§impl WaveVariantDef<PingCore>
impl WaveVariantDef<PingCore>
pub fn to_wave(self) -> Wave
pub fn to_directed(self) -> DirectedWave
pub fn err(&self, err: SpaceErr, responder: Surface) -> WaveVariantDef<PongCore>
pub fn bounce_backs(&self) -> BounceBacks
Source§impl WaveVariantDef<PongCore>
impl WaveVariantDef<PongCore>
pub fn to_wave(self) -> Wave
pub fn to_reflected(self) -> ReflectedWave
Source§impl WaveVariantDef<EchoCore>
impl WaveVariantDef<EchoCore>
pub fn to_wave(self) -> Wave
pub fn to_reflected(self) -> ReflectedWave
Source§impl<V> WaveVariantDef<V>
impl<V> WaveVariantDef<V>
pub fn new(variant: V, from: Surface) -> Selfwhere
V: WaveVariant,
pub fn replace<V2>(self, variant: V2) -> WaveVariantDef<V2>where
V2: WaveVariant,
Source§impl WaveVariantDef<PingCore>
impl WaveVariantDef<PingCore>
pub fn pong(&self) -> ReflectedProto
Source§impl<T> WaveVariantDef<RippleCoreDef<T>>where
T: ToRecipients + Clone,
impl<T> WaveVariantDef<RippleCoreDef<T>>where
T: ToRecipients + Clone,
pub fn echo(&self) -> ReflectedProto
pub fn bounce_backs(&self) -> BounceBacks
Source§impl WaveVariantDef<SingularRipple>
impl WaveVariantDef<SingularRipple>
pub fn to_singular_directed(self) -> SingularDirectedWave
Trait Implementations§
Source§impl<V: Clone> Clone for WaveVariantDef<V>
impl<V: Clone> Clone for WaveVariantDef<V>
Source§fn clone(&self) -> WaveVariantDef<V>
fn clone(&self) -> WaveVariantDef<V>
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<V: Debug> Debug for WaveVariantDef<V>
impl<V: Debug> Debug for WaveVariantDef<V>
Source§impl<V> DerefMut for WaveVariantDef<V>
impl<V> DerefMut for WaveVariantDef<V>
Source§impl<'de, V> Deserialize<'de> for WaveVariantDef<V>where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for WaveVariantDef<V>where
V: Deserialize<'de>,
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 FromReflectedAggregate for WaveVariantDef<PongCore>
impl FromReflectedAggregate for WaveVariantDef<PongCore>
fn from_reflected_aggregate(agg: ReflectedAggregate) -> Result<Self, SpaceErr>where
Self: Sized,
Source§impl Into<DirectedProto> for WaveVariantDef<PingCore>
impl Into<DirectedProto> for WaveVariantDef<PingCore>
Source§fn into(self) -> DirectedProto
fn into(self) -> DirectedProto
Converts this type into the (usually inferred) input type.
Source§impl Into<WaveVariantDef<PingCore>> for Knock
impl Into<WaveVariantDef<PingCore>> for Knock
Source§fn into(self) -> WaveVariantDef<PingCore>
fn into(self) -> WaveVariantDef<PingCore>
Converts this type into the (usually inferred) input type.
Source§impl<V: PartialEq> PartialEq for WaveVariantDef<V>
impl<V: PartialEq> PartialEq for WaveVariantDef<V>
Source§impl<V> Serialize for WaveVariantDef<V>where
V: Serialize,
impl<V> Serialize for WaveVariantDef<V>where
V: Serialize,
Source§impl ToReflected for WaveVariantDef<EchoCore>
impl ToReflected for WaveVariantDef<EchoCore>
fn to_reflected(self) -> ReflectedWave
fn from_reflected(reflected: ReflectedWave) -> Result<Self, SpaceErr>
Source§impl ToReflected for WaveVariantDef<PongCore>
impl ToReflected for WaveVariantDef<PongCore>
fn to_reflected(self) -> ReflectedWave
fn from_reflected(reflected: ReflectedWave) -> Result<Self, SpaceErr>
Source§impl<S, V> ToSubstance<S> for WaveVariantDef<V>where
V: ToSubstance<S>,
impl<S, V> ToSubstance<S> for WaveVariantDef<V>where
V: ToSubstance<S>,
Source§impl Trackable for WaveVariantDef<PingCore>
impl Trackable for WaveVariantDef<PingCore>
fn track_id(&self) -> String
fn track_method(&self) -> String
fn track_payload(&self) -> String
fn track_from(&self) -> String
fn track_to(&self) -> String
fn track(&self) -> bool
fn track_payload_fmt(&self) -> String
fn track_key_fmt(&self) -> String
fn track_fmt(&self, tracker: &Tracker) -> String
Source§impl Trackable for WaveVariantDef<SignalCore>
impl Trackable for WaveVariantDef<SignalCore>
fn track_id(&self) -> String
fn track_method(&self) -> String
fn track_payload(&self) -> String
fn track_from(&self) -> String
fn track_to(&self) -> String
fn track(&self) -> bool
fn track_payload_fmt(&self) -> String
fn track_key_fmt(&self) -> String
fn track_fmt(&self, tracker: &Tracker) -> String
Source§impl TryFrom<ReflectedWave> for WaveVariantDef<PongCore>
impl TryFrom<ReflectedWave> for WaveVariantDef<PongCore>
Source§impl TryInto<WaveVariantDef<PongCore>> for ReflectedAggregate
impl TryInto<WaveVariantDef<PongCore>> for ReflectedAggregate
Source§impl<V> Deref for WaveVariantDef<V>
impl<V> Deref for WaveVariantDef<V>
impl<V: Eq> Eq for WaveVariantDef<V>
impl<V> StructuralPartialEq for WaveVariantDef<V>
Auto Trait Implementations§
impl<V> Freeze for WaveVariantDef<V>where
V: Freeze,
impl<V> RefUnwindSafe for WaveVariantDef<V>where
V: RefUnwindSafe,
impl<V> Send for WaveVariantDef<V>where
V: Send,
impl<V> Sync for WaveVariantDef<V>where
V: Sync,
impl<V> Unpin for WaveVariantDef<V>where
V: Unpin,
impl<V> UnwindSafe for WaveVariantDef<V>where
V: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more