Skip to main content

SourceUpdate

Type Alias SourceUpdate 

Source
pub type SourceUpdate = Box<dyn FnOnce(&Source) -> Result<Option<Source>, Error> + Send>;
Expand description

What Edit::UpdateSource does to a source: it returns the source with new data, made by Source::with_data, or None if it changes nothing, or fails, as for a source of a type it doesn’t update.

Aliased Type§

pub struct SourceUpdate(/* private fields */);