pub struct InitOptions { /* private fields */ }
Expand description
Additional options for initializing the Context.
Implementations§
Source§impl InitOptions
impl InitOptions
Sourcepub fn new() -> InitOptions
pub fn new() -> InitOptions
Create a new InitOptions with all default values.
Sourcepub fn with_domain_id(self, domain_id: Option<usize>) -> InitOptions
pub fn with_domain_id(self, domain_id: Option<usize>) -> InitOptions
Transform an InitOptions into a new one with a certain domain_id
Sourcepub fn set_domain_id(&mut self, domain_id: Option<usize>)
pub fn set_domain_id(&mut self, domain_id: Option<usize>)
Set the domain_id of an InitOptions, or reset it to the default behavior (determined by environment variables) by providing None.
Trait Implementations§
Source§impl Clone for InitOptions
impl Clone for InitOptions
Source§fn clone(&self) -> InitOptions
fn clone(&self) -> InitOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for InitOptions
impl Default for InitOptions
Source§fn default() -> InitOptions
fn default() -> InitOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InitOptions
impl RefUnwindSafe for InitOptions
impl Send for InitOptions
impl Sync for InitOptions
impl Unpin for InitOptions
impl UnwindSafe for InitOptions
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