Struct cog_task::resource::ResourceManager
source · pub struct ResourceManager(_);Implementations
sourceimpl ResourceManager
impl ResourceManager
pub fn new(_config: &Config) -> Result<Self>
pub fn preload_block(
&mut self,
resources: Vec<ResourceAddr>,
tex_manager: Arc<RwLock<TextureManager>>,
config: &Config,
env: &Env
) -> Result<()>
pub fn fetch(&self, src: &ResourceAddr) -> Result<ResourceValue>
Trait Implementations
sourceimpl Clone for ResourceManager
impl Clone for ResourceManager
sourcefn clone(&self) -> ResourceManager
fn clone(&self) -> ResourceManager
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for ResourceManager
impl Send for ResourceManager
impl Sync for ResourceManager
impl Unpin for ResourceManager
impl UnwindSafe for ResourceManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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