pub struct Resource {
pub header: ResourceHeader,
pub body: Option<Box<dyn ResourceBody>>,
}
Fields
header: ResourceHeader
body: Option<Box<dyn ResourceBody>>
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Resource
impl !Send for Resource
impl !Sync for Resource
impl Unpin for Resource
impl !UnwindSafe for Resource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more