Struct cosmic_space::wave::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: WaveIdfrom: Option<Surface>to: Option<Recipients>core: DirectedCoremethod: Option<Method>handling: Option<Handling>scope: Option<Scope>agent: Option<Agent>kind: Option<DirectedKind>bounce_backs: Option<BounceBacks>via: Option<Surface>track: boolhistory: HashSet<Point>Implementations
sourceimpl DirectedProto
impl DirectedProto
pub fn build(self) -> Result<DirectedWave, SpaceErr>
pub fn fill(&mut self, wave: &UltraWave)
pub fn fill_kind(&mut self, kind: DirectedKind)
pub fn fill_to<R: ToRecipients + Clone>(&mut self, to: R)
pub fn fill_from<P: ToSurface>(&mut self, from: P)
pub fn fill_scope(&mut self, scope: &Scope)
pub fn fill_agent(&mut self, agent: &Agent)
pub fn fill_handling(&mut self, handling: &Handling)
pub fn fill_method(&mut self, method: &Method)
pub fn agent(&mut self, agent: Agent)
pub fn bounce_backs(&mut self, bounce_backs: BounceBacks)
pub fn scope(&mut self, scope: Scope)
pub fn handling(&mut self, handling: Handling)
pub fn kind(kind: &DirectedKind) -> Self
pub fn body(&mut self, body: Substance)
pub fn history(&mut self, history: HashSet<Point>)
pub fn uri(&mut self, uri: Url)
pub fn core(&mut self, core: DirectedCore) -> Result<(), SpaceErr>
pub fn method<M: Into<Method> + Clone>(&mut self, method: M)
pub fn to<P: ToRecipients + Clone>(&mut self, to: P)
pub fn from<P: ToSurface>(&mut self, from: P)
pub fn fill_via<P: ToSurface>(&mut self, via: P)
pub fn via<P: ToSurface>(&mut self, via: &P)
sourceimpl DirectedProto
impl DirectedProto
pub fn ping() -> Self
pub fn signal() -> Self
pub fn ripple() -> Self
pub fn to_with_method<P: ToRecipients + Clone>(to: P, method: Method) -> Self
pub fn from_core(core: DirectedCore) -> Self
pub fn sys<M: Into<HypMethod>, P: ToRecipients + Clone>(to: P, method: M) -> Self
pub fn msg<M: Into<ExtMethod>, P: ToRecipients + Clone>(to: P, method: M) -> Self
pub fn http<M: Into<HttpMethod>, P: ToRecipients + Clone>(
to: P,
method: M
) -> Self
pub fn cmd<M: Into<CmdMethod>, P: ToRecipients + Clone>(to: P, method: M) -> Self
Trait Implementations
sourceimpl Clone for DirectedProto
impl Clone for DirectedProto
sourcefn clone(&self) -> DirectedProto
fn clone(&self) -> DirectedProto
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 Default for DirectedProto
impl Default for DirectedProto
sourceimpl Into<DirectedProto> for Create
impl Into<DirectedProto> for Create
sourcefn into(self) -> DirectedProto
fn into(self) -> DirectedProto
Converts this type into the (usually inferred) input type.
sourceimpl Into<DirectedProto> for DirectedWave
impl Into<DirectedProto> for DirectedWave
sourcefn into(self) -> DirectedProto
fn into(self) -> DirectedProto
Converts this type into the (usually inferred) input type.
sourceimpl Into<DirectedProto> for Wave<Ping>
impl Into<DirectedProto> for Wave<Ping>
sourcefn into(self) -> DirectedProto
fn into(self) -> DirectedProto
Converts this type into the (usually inferred) input type.
sourceimpl Trackable for DirectedProto
impl Trackable for DirectedProto
fn track_id(&self) -> String
fn track_method(&self) -> String
fn track_payload(&self) -> String
fn track_from(&self) -> String
fn track_to(&self) -> String
fn track(&self) -> bool
fn track_payload_fmt(&self) -> String
fn track_key_fmt(&self) -> String
fn track_fmt(&self, tracker: &Tracker) -> String
Auto Trait Implementations
impl RefUnwindSafe for DirectedProto
impl Send for DirectedProto
impl Sync for DirectedProto
impl Unpin for DirectedProto
impl UnwindSafe for DirectedProto
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