pub struct Resource {
pub name: Ident,
pub ty: Option<Type>,
}Expand description
An inline resource or configuration entry. A resource needs either a type or
a matching bound; None is the bare-name form, which #[task] rejects for
resources because it cannot infer a field type from a name alone.
Fields§
§name: Ident§ty: Option<Type>Trait Implementations§
Auto Trait Implementations§
impl !Send for Resource
impl !Sync for Resource
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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