pub struct DfxInterfaceBuilder { /* private fields */ }
Implementations§
Source§impl DfxInterfaceBuilder
impl DfxInterfaceBuilder
pub fn new() -> Self
pub fn anonymous(self) -> Self
pub fn with_identity_named(self, name: &str) -> Self
pub fn with_identity(self, identity: IdentityPicker) -> Self
pub fn mainnet(self) -> Self
pub fn with_network(self, network: NetworkPicker) -> Self
pub fn with_network_named(self, name: &str) -> Self
pub fn with_extension_manager( self, version: Version, ) -> Result<Self, NewExtensionManagerError>
pub fn with_extension_manager_from_cache_path( self, cache_path: &Path, ) -> Result<Self, NewExtensionManagerFromCachePathError>
pub fn with_force_fetch_root_key_insecure_non_mainnet_only(self) -> Self
pub async fn build(&self) -> Result<DfxInterface, BuildDfxInterfaceError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DfxInterfaceBuilder
impl RefUnwindSafe for DfxInterfaceBuilder
impl Send for DfxInterfaceBuilder
impl Sync for DfxInterfaceBuilder
impl Unpin for DfxInterfaceBuilder
impl UnwindSafe for DfxInterfaceBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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