pub struct VoidCallbackIntent {
pub callback: Listener,
}Expand description
An Intent that keeps a callback to be invoked by a VoidCallbackAction when it
receives this intent.
Fields§
§callback: ListenerThe callback that is to be called by the VoidCallbackAction that receives this
intent.
Implementations§
Source§impl VoidCallbackIntent
impl VoidCallbackIntent
Sourcepub fn new(callback: Listener) -> VoidCallbackIntent
pub fn new(callback: Listener) -> VoidCallbackIntent
Creates a VoidCallbackIntent.
Trait Implementations§
Source§impl Debug for VoidCallbackIntent
impl Debug for VoidCallbackIntent
Source§impl Intent for VoidCallbackIntent
impl Intent for VoidCallbackIntent
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The value behind the erased intent, for the downcast an
Action does to recover its
own intent type.Source§fn intent_type(&self) -> TypeId
fn intent_type(&self) -> TypeId
Dart’s
intent.runtimeType: the key an Actions map is looked up with.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
Intent.debugFillProperties, from Diagnosticable: an intent adds its own
fields.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
Intent.toStringShort: the type and the identity.Source§fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
Dart’s
Intent.toDiagnosticsNode(name:), from Diagnosticable.Source§fn diagnostic_string(&self) -> String
fn diagnostic_string(&self) -> String
Dart’s
Diagnosticable.toString, which a property holding an intent prints.Auto Trait Implementations§
impl !RefUnwindSafe for VoidCallbackIntent
impl !Send for VoidCallbackIntent
impl !Sync for VoidCallbackIntent
impl !UnwindSafe for VoidCallbackIntent
impl Forget for VoidCallbackIntent
impl Freeze for VoidCallbackIntent
impl Move for VoidCallbackIntent
impl Unpin for VoidCallbackIntent
impl UnsafeUnpin for VoidCallbackIntentwhere
*const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
*const (): UnsafeUnpin,
Blanket Implementations§
Source§impl<T> ActionIntent for Twhere
T: Intent,
impl<T> ActionIntent for Twhere
T: Intent,
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