Struct design_pattern_examples_rust::proxy::proxy_real::RealEntity
source · pub struct RealEntity {}
Expand description
The real struct object that does all the work.
This would normally be a very expensive struct to instantiate and/or be running on the server end of a remoting channel. For demonstration purposes, imagine this struct takes many seconds to instantiate.
Implementations§
source§impl RealEntity
impl RealEntity
sourcepub fn new() -> Box<dyn IWorkByProxy>
pub fn new() -> Box<dyn IWorkByProxy>
Constructor
Returns
Returns an instance of the RealEntity struct as represented by the IWorkByProxy trait.