pub struct ListDeleteDriver {
pub can_delete: Box<dyn Fn(usize) -> bool>,
pub deleted: Box<dyn Fn(usize)>,
}Expand description
The delete closures the list() piece supplies (docs/list.md). Exposed to the backend as
day_spec::ListDelete by the list source adapter; also driven directly by list_try_delete
(the dayscript delete_row step and the mock probe).
Fields§
§can_delete: Box<dyn Fn(usize) -> bool>Consult the app’s guard: may this row be deleted?
deleted: Box<dyn Fn(usize)>Commit an accepted delete: drops the row from the piece’s snapshot + tokens synchronously
and defers the app’s on_delete callback to the next event drain.
Auto Trait Implementations§
impl !RefUnwindSafe for ListDeleteDriver
impl !Send for ListDeleteDriver
impl !Sync for ListDeleteDriver
impl !UnwindSafe for ListDeleteDriver
impl Freeze for ListDeleteDriver
impl Unpin for ListDeleteDriver
impl UnsafeUnpin for ListDeleteDriver
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more