Enum cosmic_space::wave::DirectedWaveDef
source · pub enum DirectedWaveDef<T>where
T: ToRecipients + Clone,{
Ping(Wave<Ping>),
Ripple(Wave<RippleDef<T>>),
Signal(Wave<Signal>),
}Variants
Implementations
sourceimpl<T> DirectedWaveDef<T>where
T: ToRecipients + Clone,
impl<T> DirectedWaveDef<T>where
T: ToRecipients + Clone,
sourceimpl DirectedWaveDef<Surface>
impl DirectedWaveDef<Surface>
sourceimpl<T> DirectedWaveDef<T>where
T: ToRecipients + Clone,
impl<T> DirectedWaveDef<T>where
T: ToRecipients + Clone,
pub fn id(&self) -> &WaveId
pub fn agent(&self) -> &Agent
pub fn scope(&self) -> &Scope
pub fn handling(&self) -> &Handling
pub fn err(&self, err: SpaceErr, responder: Surface) -> Bounce<ReflectedWave>
pub fn bounce_backs(&self) -> BounceBacks
pub fn set_bounce_backs(
&mut self,
bounce_backs: BounceBacks
) -> Result<(), SpaceErr>
pub fn from(&self) -> &Surface
pub fn via(&self) -> &Option<Surface>
pub fn reflect_to(&self) -> &Surface
pub fn take_via(&mut self) -> Option<Surface>
pub fn replace_via(&mut self, surface: Surface) -> Option<Surface>
pub fn body(&self) -> &Substance
pub fn directed_kind(&self) -> DirectedKind
pub fn core(&self) -> &DirectedCore
pub fn core_mut(&mut self) -> &mut DirectedCore
sourceimpl DirectedWaveDef<Recipients>
impl DirectedWaveDef<Recipients>
pub fn reflected_proto(&self) -> BounceProto
Trait Implementations
sourceimpl<T: Clone> Clone for DirectedWaveDef<T>where
T: ToRecipients + Clone,
impl<T: Clone> Clone for DirectedWaveDef<T>where
T: ToRecipients + Clone,
sourcefn clone(&self) -> DirectedWaveDef<T>
fn clone(&self) -> DirectedWaveDef<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<T: Debug> Debug for DirectedWaveDef<T>where
T: ToRecipients + Clone,
impl<T: Debug> Debug for DirectedWaveDef<T>where
T: ToRecipients + Clone,
sourceimpl<'de, T> Deserialize<'de> for DirectedWaveDef<T>where
T: ToRecipients + Clone,
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for DirectedWaveDef<T>where
T: ToRecipients + Clone,
T: Deserialize<'de>,
sourcefn 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
sourceimpl<T: PartialEq> PartialEq<DirectedWaveDef<T>> for DirectedWaveDef<T>where
T: ToRecipients + Clone,
impl<T: PartialEq> PartialEq<DirectedWaveDef<T>> for DirectedWaveDef<T>where
T: ToRecipients + Clone,
sourcefn eq(&self, other: &DirectedWaveDef<T>) -> bool
fn eq(&self, other: &DirectedWaveDef<T>) -> bool
sourceimpl<T> Serialize for DirectedWaveDef<T>where
T: ToRecipients + Clone,
T: Serialize,
impl<T> Serialize for DirectedWaveDef<T>where
T: ToRecipients + Clone,
T: Serialize,
sourceimpl<W> Spannable for DirectedWaveDef<W>where
W: ToRecipients + Clone,
impl<W> Spannable for DirectedWaveDef<W>where
W: ToRecipients + Clone,
impl<T: Eq> Eq for DirectedWaveDef<T>where
T: ToRecipients + Clone,
impl<T> StructuralEq for DirectedWaveDef<T>where
T: ToRecipients + Clone,
impl<T> StructuralPartialEq for DirectedWaveDef<T>where
T: ToRecipients + Clone,
Auto Trait Implementations
impl<T> RefUnwindSafe for DirectedWaveDef<T>where
T: RefUnwindSafe,
impl<T> Send for DirectedWaveDef<T>where
T: Send,
impl<T> Sync for DirectedWaveDef<T>where
T: Sync,
impl<T> Unpin for DirectedWaveDef<T>where
T: Unpin,
impl<T> UnwindSafe for DirectedWaveDef<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
sourcefn 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
sourceimpl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
sourcefn 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