pub struct InstanceBuilder {
instance: Instance,
instance_desc: InstanceDescriptor,
telemetry: Option<Telemetry>,
}Fields§
§instance: Instance§instance_desc: InstanceDescriptor§telemetry: Option<Telemetry>Implementations§
Source§impl InstanceBuilder
impl InstanceBuilder
pub fn new( name: &str, desc: InstanceDescriptor, telemetry: Option<Telemetry>, ) -> Self
pub fn try_add_hal<A: Api>(&mut self, api: A)
pub fn try_add_custom_hal<A: Api>( &mut self, _: A, f: impl FnOnce(&InstanceDescriptor<'_>) -> Result<A::Instance, InstanceError>, )
pub fn build(self) -> Arc<Instance>
Auto Trait Implementations§
impl !Freeze for InstanceBuilder
impl !RefUnwindSafe for InstanceBuilder
impl Send for InstanceBuilder
impl Sync for InstanceBuilder
impl Unpin for InstanceBuilder
impl UnsafeUnpin for InstanceBuilder
impl !UnwindSafe for InstanceBuilder
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 more