Struct DirectedProto

Source
pub struct DirectedProto {
Show 13 fields pub id: WaveId, pub from: Option<Surface>, pub to: Option<Recipients>, pub core: DirectedCore, pub method: Option<Method>, pub handling: Option<Handling>, pub scope: Option<Scope>, pub agent: Option<Agent>, pub kind: Option<DirectedKind>, pub bounce_backs: Option<BounceBacks>, pub via: Option<Surface>, pub track: bool, pub history: HashSet<Point>,
}

Fields§

§id: WaveId§from: Option<Surface>§to: Option<Recipients>§core: DirectedCore§method: Option<Method>§handling: Option<Handling>§scope: Option<Scope>§agent: Option<Agent>§kind: Option<DirectedKind>§bounce_backs: Option<BounceBacks>§via: Option<Surface>§track: bool§history: HashSet<Point>

Implementations§

Source§

impl DirectedProto

Source

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

Source

pub fn fill(&mut self, wave: &UltraWave)

Source

pub fn fill_kind(&mut self, kind: DirectedKind)

Source

pub fn fill_to<R: ToRecipients + Clone>(&mut self, to: R)

Source

pub fn fill_from<P: ToSurface>(&mut self, from: P)

Source

pub fn fill_scope(&mut self, scope: &Scope)

Source

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

Source

pub fn fill_handling(&mut self, handling: &Handling)

Source

pub fn fill_method(&mut self, method: &Method)

Source

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

Source

pub fn bounce_backs(&mut self, bounce_backs: BounceBacks)

Source

pub fn scope(&mut self, scope: Scope)

Source

pub fn handling(&mut self, handling: Handling)

Source

pub fn kind(kind: &DirectedKind) -> Self

Source

pub fn body(&mut self, body: Substance)

Source

pub fn history(&mut self, history: HashSet<Point>)

Source

pub fn uri(&mut self, uri: Url)

Source

pub fn core(&mut self, core: DirectedCore) -> Result<(), SpaceErr>

Source

pub fn method<M: Into<Method> + Clone>(&mut self, method: M)

Source

pub fn to<P: ToRecipients + Clone>(&mut self, to: P)

Source

pub fn from<P: ToSurface>(&mut self, from: P)

Source

pub fn fill_via<P: ToSurface>(&mut self, via: P)

Source

pub fn via<P: ToSurface>(&mut self, via: &P)

Source§

impl DirectedProto

Source

pub fn ping() -> Self

Source

pub fn signal() -> Self

Source

pub fn ripple() -> Self

Source

pub fn to_with_method<P: ToRecipients + Clone>(to: P, method: Method) -> Self

Source

pub fn from_core(core: DirectedCore) -> Self

Source

pub fn sys<M: Into<HypMethod>, P: ToRecipients + Clone>( to: P, method: M, ) -> Self

Source

pub fn msg<M: Into<ExtMethod>, P: ToRecipients + Clone>( to: P, method: M, ) -> Self

Source

pub fn http<M: Into<HttpMethod>, P: ToRecipients + Clone>( to: P, method: M, ) -> Self

Source

pub fn cmd<M: Into<CmdMethod>, P: ToRecipients + Clone>( to: P, method: M, ) -> Self

Trait Implementations§

Source§

impl Clone for DirectedProto

Source§

fn clone(&self) -> DirectedProto

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for DirectedProto

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Into<DirectedProto> for Create

Source§

fn into(self) -> DirectedProto

Converts this type into the (usually inferred) input type.
Source§

impl Into<DirectedProto> for DirectedWave

Source§

fn into(self) -> DirectedProto

Converts this type into the (usually inferred) input type.
Source§

impl Into<DirectedProto> for Wave<Ping>

Source§

fn into(self) -> DirectedProto

Converts this type into the (usually inferred) input type.
Source§

impl Trackable for DirectedProto

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<I, T> ExtractContext<I, ()> for T

Source§

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<I> RecreateContext<I> for I

Source§

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,