pub struct ProvidedPackage {
pub app: String,
pub title: String,
pub resources: Vec<ProvidedResource>,
}Expand description
What a provider a device registered publishes, read as a package code calls its actions by
(use so.tilo.migrate.engine as engine, then engine.start(source: "home")): the app its
resources name, the name people call it, and each resource with the address its actions are
called at. A call of one goes out as any app’s call does; the device’s dispatch finds the
provider by the address.
Fields§
§app: String§title: String§resources: Vec<ProvidedResource>Implementations§
Source§impl ProvidedPackage
impl ProvidedPackage
Sourcepub fn of(resources: &[ResourceSpec]) -> Option<Self>
pub fn of(resources: &[ResourceSpec]) -> Option<Self>
The package resources make: named by the app the first of them says it is published
by, and by its label. None when none names an app: such a provider is reached by
querying it, not compiled against.
Trait Implementations§
Source§impl Clone for ProvidedPackage
impl Clone for ProvidedPackage
Source§impl Debug for ProvidedPackage
impl Debug for ProvidedPackage
Source§impl<'de> Deserialize<'de> for ProvidedPackage
impl<'de> Deserialize<'de> for ProvidedPackage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProvidedPackage
impl PartialEq for ProvidedPackage
Source§impl Serialize for ProvidedPackage
impl Serialize for ProvidedPackage
impl StructuralPartialEq for ProvidedPackage
Auto Trait Implementations§
impl Forget for ProvidedPackage
impl Freeze for ProvidedPackage
impl Move for ProvidedPackage
impl RefUnwindSafe for ProvidedPackage
impl Send for ProvidedPackage
impl Sync for ProvidedPackage
impl Unpin for ProvidedPackage
impl UnsafeUnpin for ProvidedPackage
impl UnwindSafe for ProvidedPackage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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