Skip to main content

resolve_resource

Function resolve_resource 

Source
pub fn resolve_resource<T: ?Sized + 'static>(
    resource: Option<BatchResource<T>>,
    compositor: Option<&Rc<ServerCompositor>>,
    cast: fn(Rc<dyn IServerObject>) -> Option<Rc<T>>,
) -> Option<ServerResourceRef<T>>
Expand description

Resolves a resource reference read from a batch: a value is taken as it is, the id of a server object is looked up and viewed through cast.