pub struct BackendProber { /* private fields */ }Expand description
Backend prober for automatic backend selection
Implementations§
Source§impl BackendProber
impl BackendProber
Sourcepub fn with_preference(preferred_order: Vec<BackendType>) -> Self
pub fn with_preference(preferred_order: Vec<BackendType>) -> Self
Create prober with custom backend preference order
Sourcepub fn probe_best_backend(
&self,
context: &RenderContext,
) -> Result<Box<dyn RenderBackend>, RenderError>
pub fn probe_best_backend( &self, context: &RenderContext, ) -> Result<Box<dyn RenderBackend>, RenderError>
Probe for the best available backend
Sourcepub fn is_backend_available(&self, backend_type: BackendType) -> bool
pub fn is_backend_available(&self, backend_type: BackendType) -> bool
Check if a backend is available
Sourcepub fn available_backends(&self) -> Vec<BackendType>
pub fn available_backends(&self) -> Vec<BackendType>
Get list of available backends
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackendProber
impl RefUnwindSafe for BackendProber
impl Send for BackendProber
impl Sync for BackendProber
impl Unpin for BackendProber
impl UnsafeUnpin for BackendProber
impl UnwindSafe for BackendProber
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().