pub enum WaveDef<T>where
T: ToRecipients + Clone,{
Ping(WaveVariantDef<PingCore>),
Pong(WaveVariantDef<PongCore>),
Ripple(WaveVariantDef<RippleCoreDef<T>>),
Echo(WaveVariantDef<EchoCore>),
Signal(WaveVariantDef<SignalCore>),
}Variants§
Ping(WaveVariantDef<PingCore>)
Pong(WaveVariantDef<PongCore>)
Ripple(WaveVariantDef<RippleCoreDef<T>>)
Echo(WaveVariantDef<EchoCore>)
Signal(WaveVariantDef<SignalCore>)
Implementations§
Source§impl<T> WaveDef<T>where
T: ToRecipients + Clone,
impl<T> WaveDef<T>where
T: ToRecipients + Clone,
pub fn via_desc(&self) -> String
pub fn has_visited(&self, star: &Point) -> bool
pub fn add_history(&mut self, point: &Point)
pub fn history(&self) -> HashSet<Point>
pub fn id(&self) -> WaveId
pub fn body(&self) -> &Substance
pub fn payload(&self) -> Option<&Wave>
Source§impl WaveDef<Recipients>
impl WaveDef<Recipients>
pub fn can_shard(&self) -> bool
pub fn to_singular(self) -> Result<SingularWave, SpaceErr>
pub fn wrap_in_transport(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_substance(self) -> Substance
pub fn to_directed(self) -> Result<DirectedWave, SpaceErr>
pub fn to_reflected(self) -> Result<ReflectedWave, SpaceErr>
pub fn kind(&self) -> WaveKind
pub fn hops(&self) -> u16
pub fn max_hops(&self) -> u16
pub fn inc_hops(&mut self)
pub fn add_to_history(&mut self, star: Point)
pub fn to_signal(self) -> Result<WaveVariantDef<SignalCore>, SpaceErr>
pub fn method(&self) -> Option<&Method>
pub fn is_directed(&self) -> bool
pub fn is_reflected(&self) -> bool
pub fn to(&self) -> Recipients
pub fn from(&self) -> &Surface
pub fn set_agent(&mut self, agent: Agent)
pub fn set_to(&mut self, to: Surface)
pub fn set_from(&mut self, from: Surface)
pub fn agent(&self) -> &Agent
pub fn handling(&self) -> &Handling
pub fn track(&self) -> bool
pub fn set_track(&mut self, track: bool)
pub fn scope(&self) -> &Scope
pub fn to_ripple(self) -> Result<WaveVariantDef<Ripple>, SpaceErr>
pub fn transported(&self) -> Option<&Wave>
pub fn transported_mut(&mut self) -> Option<&mut Wave>
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for WaveDef<T>
impl<'de, T> Deserialize<'de> for WaveDef<T>
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 ToSubstance<WaveDef<Recipients>> for Substance
impl ToSubstance<WaveDef<Recipients>> for Substance
Source§impl TryInto<WaveDef<Recipients>> for PrimitiveFrame
impl TryInto<WaveDef<Recipients>> for PrimitiveFrame
impl<T> Eq for WaveDef<T>
impl<T> StructuralPartialEq for WaveDef<T>where
T: ToRecipients + Clone,
Auto Trait Implementations§
impl<T> Freeze for WaveDef<T>where
T: Freeze,
impl<T> RefUnwindSafe for WaveDef<T>where
T: RefUnwindSafe,
impl<T> Send for WaveDef<T>where
T: Send,
impl<T> Sync for WaveDef<T>where
T: Sync,
impl<T> Unpin for WaveDef<T>where
T: Unpin,
impl<T> UnwindSafe for WaveDef<T>where
T: 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