pub struct FilterNode<T, F> {
pub predicate: Arc<F>,
pub _marker: PhantomData<T>,
}Fields§
§predicate: Arc<F>§_marker: PhantomData<T>Implementations§
Trait Implementations§
Source§impl<T, F> Clone for FilterNode<T, F>
impl<T, F> Clone for FilterNode<T, F>
Source§impl<T, F> Debug for FilterNode<T, F>
impl<T, F> Debug for FilterNode<T, F>
Source§impl<'de, T, F> Deserialize<'de> for FilterNode<T, F>where
F: Default,
impl<'de, T, F> Deserialize<'de> for FilterNode<T, F>where
F: Default,
Source§fn 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
Source§impl<T, F> JsonSchema for FilterNode<T, F>
impl<T, F> JsonSchema for FilterNode<T, F>
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl<T, F> Serialize for FilterNode<T, F>
impl<T, F> Serialize for FilterNode<T, F>
Source§impl<T, F> Transition<T, T> for FilterNode<T, F>
impl<T, F> Transition<T, T> for FilterNode<T, F>
Source§type Resources = ()
type Resources = ()
The type of resources required by this transition.
This follows the “Hard-Wired Types” principle from the Master Plan.
Source§fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: T,
_resources: &'life1 Self::Resources,
_bus: &'life2 mut Bus,
) -> Pin<Box<dyn Future<Output = Outcome<T, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: T,
_resources: &'life1 Self::Resources,
_bus: &'life2 mut Bus,
) -> Pin<Box<dyn Future<Output = Outcome<T, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute the transition. Read more
Source§fn description(&self) -> Option<String>
fn description(&self) -> Option<String>
Returns a detailed description of what this transition does.
Source§fn position(&self) -> Option<(f32, f32)>
fn position(&self) -> Option<(f32, f32)>
Returns the visual position of this transition in a schematic.
(x, y) coordinates.
Source§fn bus_access_policy(&self) -> Option<BusAccessPolicy>
fn bus_access_policy(&self) -> Option<BusAccessPolicy>
Optional transition-scoped Bus access policy (M143). Read more
Auto Trait Implementations§
impl<T, F> Freeze for FilterNode<T, F>
impl<T, F> RefUnwindSafe for FilterNode<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for FilterNode<T, F>
impl<T, F> Sync for FilterNode<T, F>
impl<T, F> Unpin for FilterNode<T, F>where
T: Unpin,
impl<T, F> UnsafeUnpin for FilterNode<T, F>
impl<T, F> UnwindSafe for FilterNode<T, F>where
F: RefUnwindSafe,
T: UnwindSafe,
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