Struct usdpl_back::Instance
source · [−]pub struct Instance<'a> { /* private fields */ }Expand description
Back-end instance for interacting with the front-end
Implementations
sourceimpl<'a> Instance<'a>
impl<'a> Instance<'a>
sourcepub fn register<S: Into<String>, F: FnMut(Vec<Primitive>) -> Vec<Primitive> + Send + Sync>(
&mut self,
name: S,
f: &'a mut F
) -> &mut Self
pub fn register<S: Into<String>, F: FnMut(Vec<Primitive>) -> Vec<Primitive> + Send + Sync>(
&mut self,
name: S,
f: &'a mut F
) -> &mut Self
Register a function which can be invoked by the front-end
pub fn serve<const ERROR: bool>(&mut self) -> Result<()>
sourcepub fn serve_internal<const ERROR: bool>(&mut self) -> Result<()>
pub fn serve_internal<const ERROR: bool>(&mut self) -> Result<()>
Receive and execute callbacks forever
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Instance<'a>
impl<'a> !Send for Instance<'a>
impl<'a> !Sync for Instance<'a>
impl<'a> Unpin for Instance<'a>
impl<'a> !UnwindSafe for Instance<'a>
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