starlane_space::space::wave

Type Alias Wave

Source
pub type Wave = WaveDef<Recipients>;

Aliased Type§

enum Wave {
    Ping(WaveVariantDef<PingCore>),
    Pong(WaveVariantDef<PongCore>),
    Ripple(WaveVariantDef<RippleCoreDef<Recipients>>),
    Echo(WaveVariantDef<EchoCore>),
    Signal(WaveVariantDef<SignalCore>),
}

Variants§

Implementations§

Source§

impl Wave

Source

pub fn can_shard(&self) -> bool

Source

pub fn to_singular(self) -> Result<SingularWave, SpaceErr>

Source

pub fn wrap_in_transport(self, from: Surface, to: Surface) -> DirectedProto

Source

pub fn unwrap_from_hop(self) -> Result<WaveVariantDef<SignalCore>, SpaceErr>

Source

pub fn unwrap_from_transport(self) -> Result<Wave, SpaceErr>

Source

pub fn to_substance(self) -> Substance

Source

pub fn to_directed(self) -> Result<DirectedWave, SpaceErr>

Source

pub fn to_reflected(self) -> Result<ReflectedWave, SpaceErr>

Source

pub fn kind(&self) -> WaveKind

Source

pub fn desc(&self) -> String

return a description of this wave for debugging purposes

Source

pub fn hops(&self) -> u16

Source

pub fn max_hops(&self) -> u16

Source

pub fn inc_hops(&mut self)

Source

pub fn add_to_history(&mut self, star: Point)

Source

pub fn to_signal(self) -> Result<WaveVariantDef<SignalCore>, SpaceErr>

Source

pub fn method(&self) -> Option<&Method>

Source

pub fn is_directed(&self) -> bool

Source

pub fn is_reflected(&self) -> bool

Source

pub fn to(&self) -> Recipients

Source

pub fn from(&self) -> &Surface

Source

pub fn set_agent(&mut self, agent: Agent)

Source

pub fn set_to(&mut self, to: Surface)

Source

pub fn set_from(&mut self, from: Surface)

Source

pub fn agent(&self) -> &Agent

Source

pub fn handling(&self) -> &Handling

Source

pub fn track(&self) -> bool

Source

pub fn set_track(&mut self, track: bool)

Source

pub fn scope(&self) -> &Scope

Source

pub fn to_ripple(self) -> Result<WaveVariantDef<Ripple>, SpaceErr>

Source

pub fn transported(&self) -> Option<&Wave>

Source

pub fn transported_mut(&mut self) -> Option<&mut Wave>

Trait Implementations§

Source§

impl<S> ToSubstance<S> for Wave

Source§

impl Trackable for Wave

Source§

impl TryInto<PrimitiveFrame> for Wave

Source§

type Error = SpaceErr

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<PrimitiveFrame, Self::Error>

Performs the conversion.