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
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)
Source§impl 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§
Source§impl Clone for DirectedProto
impl Clone for DirectedProto
Source§fn clone(&self) -> DirectedProto
fn clone(&self) -> DirectedProto
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 Default for DirectedProto
impl Default for DirectedProto
Source§impl Into<DirectedProto> for Create
impl Into<DirectedProto> for Create
Source§fn into(self) -> DirectedProto
fn into(self) -> DirectedProto
Converts this type into the (usually inferred) input type.
Source§impl Into<DirectedProto> for DirectedWave
impl Into<DirectedProto> for DirectedWave
Source§fn into(self) -> DirectedProto
fn into(self) -> DirectedProto
Converts this type into the (usually inferred) input type.
Source§impl Into<DirectedProto> for Wave<Ping>
impl Into<DirectedProto> for Wave<Ping>
Source§fn into(self) -> DirectedProto
fn into(self) -> DirectedProto
Converts this type into the (usually inferred) input type.
Source§impl 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 Freeze for DirectedProto
impl RefUnwindSafe for DirectedProto
impl Send for DirectedProto
impl Sync for DirectedProto
impl Unpin for DirectedProto
impl UnwindSafe for DirectedProto
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<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