Skip to main content

read_resource

Function read_resource 

Source
pub fn read_resource<T: ?Sized + BatchResourceValue>(
    reader: &mut BatchStreamReader<'_>,
    compositor: Option<&Rc<ServerCompositor>>,
    cast: fn(Rc<dyn IServerObject>) -> Option<Rc<T>>,
) -> Option<ServerResourceRef<T>>
Expand description

Reads a resource reference from a batch and resolves it.