Enum overclock::core::Subscriber
source · pub enum Subscriber<T: Resource> {
OneCopy(Sender<Result<T>>),
LinkedCopy(Option<Sender<Result<T>>>, Box<dyn Shutdown>, bool),
DynCopy(ResourceRef, Box<dyn Route<Event<T>>>),
}
Expand description
Subscriber variants
Variants§
OneCopy(Sender<Result<T>>)
OneCopy subscriber will receive one copy of the resource once it’s available
LinkedCopy(Option<Sender<Result<T>>>, Box<dyn Shutdown>, bool)
LinkedOneCopy subscriber will receive one copy of the resource once it’s available, subscriber will get shutdown if the resource is replaced or dropped.
DynCopy(ResourceRef, Box<dyn Route<Event<T>>>)
Subscriber will receive dynamic copies, pushed by the publisher, and Event::Dropped(..) will be pushed if the resource got dropped by the publisher. Bool flag is used to indicate wheith