mirror of
https://github.com/sinui0/ludi.git
synced 2026-01-09 21:08:05 -05:00
28 lines
491 B
Rust
28 lines
491 B
Rust
#![allow(dead_code)]
|
|
|
|
#[derive(ludi::Controller)]
|
|
pub struct Foo;
|
|
|
|
impl ::ludi::Actor for Foo {
|
|
type Stop = ();
|
|
type Error = ();
|
|
|
|
async fn stopped(&mut self) -> Result<Self::Stop, Self::Error> {
|
|
Ok(())
|
|
}
|
|
}
|
|
|
|
#[derive(ludi::Controller)]
|
|
pub struct FooGenerics<T>(T)
|
|
where
|
|
T: Send;
|
|
|
|
impl<T: Send> ::ludi::Actor for FooGenerics<T> {
|
|
type Stop = ();
|
|
type Error = ();
|
|
|
|
async fn stopped(&mut self) -> Result<Self::Stop, Self::Error> {
|
|
Ok(())
|
|
}
|
|
}
|