pub enum UltraWaveDef<T>where
T: ToRecipients + Clone,{
Ping(Wave<Ping>),
Pong(Wave<Pong>),
Ripple(Wave<RippleDef<T>>),
Echo(Wave<Echo>),
Signal(Wave<Signal>),
}
Variants§
Implementations§
Source§impl<T> UltraWaveDef<T>where
T: ToRecipients + Clone,
impl<T> UltraWaveDef<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<&UltraWave>
Source§impl UltraWaveDef<Recipients>
impl UltraWaveDef<Recipients>
pub fn can_shard(&self) -> bool
pub fn to_singular(self) -> Result<SingularUltraWave, SpaceErr>
pub fn wrap_in_transport(self, from: Surface, to: Surface) -> DirectedProto
pub fn unwrap_from_hop(self) -> Result<Wave<Signal>, SpaceErr>
pub fn unwrap_from_transport(self) -> Result<UltraWave, 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<Wave<Signal>, 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<Wave<Ripple>, SpaceErr>
pub fn transported(&self) -> Option<&UltraWave>
pub fn transported_mut(&mut self) -> Option<&mut UltraWave>
Trait Implementations§
Source§impl<T> Clone for UltraWaveDef<T>
impl<T> Clone for UltraWaveDef<T>
Source§fn clone(&self) -> UltraWaveDef<T>
fn clone(&self) -> UltraWaveDef<T>
Returns a duplicate 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<T> Debug for UltraWaveDef<T>
impl<T> Debug for UltraWaveDef<T>
Source§impl<'de, T> Deserialize<'de> for UltraWaveDef<T>
impl<'de, T> Deserialize<'de> for UltraWaveDef<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 From<UltraWaveDef<Recipients>> for Substance
impl From<UltraWaveDef<Recipients>> for Substance
Source§impl Into<UltraWaveDef<Recipients>> for Greet
impl Into<UltraWaveDef<Recipients>> for Greet
Source§impl<T> PartialEq for UltraWaveDef<T>
impl<T> PartialEq for UltraWaveDef<T>
Source§impl<T> Serialize for UltraWaveDef<T>
impl<T> Serialize for UltraWaveDef<T>
Source§impl<W> Spannable for UltraWaveDef<W>where
W: ToRecipients + Clone,
impl<W> Spannable for UltraWaveDef<W>where
W: ToRecipients + Clone,
Source§impl ToSubstance<UltraWaveDef<Recipients>> for Substance
impl ToSubstance<UltraWaveDef<Recipients>> for Substance
Source§impl TryInto<UltraWaveDef<Recipients>> for PrimitiveFrame
impl TryInto<UltraWaveDef<Recipients>> for PrimitiveFrame
Source§impl TryInto<UltraWaveDef<Recipients>> for Substance
impl TryInto<UltraWaveDef<Recipients>> for Substance
impl<T> Eq for UltraWaveDef<T>
impl<T> StructuralPartialEq for UltraWaveDef<T>where
T: ToRecipients + Clone,
Auto Trait Implementations§
impl<T> Freeze for UltraWaveDef<T>where
T: Freeze,
impl<T> RefUnwindSafe for UltraWaveDef<T>where
T: RefUnwindSafe,
impl<T> Send for UltraWaveDef<T>where
T: Send,
impl<T> Sync for UltraWaveDef<T>where
T: Sync,
impl<T> Unpin for UltraWaveDef<T>where
T: Unpin,
impl<T> UnwindSafe for UltraWaveDef<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§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