pub struct SystemBuilder { /* private fields */ }Expand description
Configures backend selection, backend-specific options, and custom providers.
Implementations§
Source§impl SystemBuilder
impl SystemBuilder
Sourcepub fn backend_policy(self, policy: BackendPolicy) -> Self
pub fn backend_policy(self, policy: BackendPolicy) -> Self
Sets the backend selection and fallback policy.
Sourcepub fn register_backend(self, provider: impl BackendProvider) -> Self
pub fn register_backend(self, provider: impl BackendProvider) -> Self
Registers an application-provided backend under its stable identifier.
Sourcepub fn backend_options(self, options: impl Into<BackendOptions>) -> Self
pub fn backend_options(self, options: impl Into<BackendOptions>) -> Self
Adds backend-specific options, validated when the system is built.
Sourcepub fn build(self) -> CameraResult<CameraSystem>
pub fn build(self) -> CameraResult<CameraSystem>
Validates the configuration and builds an immutable camera system.
Trait Implementations§
Source§impl Debug for SystemBuilder
impl Debug for SystemBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for SystemBuilder
impl !UnwindSafe for SystemBuilder
impl Forget for SystemBuilder
impl Freeze for SystemBuilder
impl Send for SystemBuilder
impl Sync for SystemBuilder
impl Unpin for SystemBuilder
impl UnsafeUnpin for SystemBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more