Struct ic_agent::agent::AgentBuilder [−][src]
pub struct AgentBuilder { /* fields omitted */ }Implementations
Create an instance of Agent with the information from this builder.
👎 Deprecated since 0.3.0: Prefer using with_transport().
Prefer using with_transport().
Set the URL of the Agent.
Set a Replica transport to talk to serve as the replica interface.
Same as [with_transport], but provides a Arc boxed implementation instead
of a direct type.
Add a NonceFactory to this Agent. By default, no nonce is produced.
pub fn with_nonce_generator<N: 'static + NonceGenerator>(
self,
nonce_factory: N
) -> AgentBuilder
pub fn with_nonce_generator<N: 'static + NonceGenerator>(
self,
nonce_factory: N
) -> AgentBuilder
Same as [with_nonce_factory], but for any NonceGenerator type
Same as [with_nonce_generator], but provides a Arc boxed implementation instead
of a direct type.
Add an identity provider for signing messages. This is required.
Same as [with_identity], but provides a boxed implementation instead of a direct type.
Same as [with_identity], but provides a Arc boxed implementation instead
of a direct type.
Provides a default ingress expiry. This is the delta that will be applied at the time an update or query is made. The default expiry cannot be a fixed system time.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AgentBuilder
impl Send for AgentBuilder
impl Sync for AgentBuilder
impl Unpin for AgentBuilder
impl !UnwindSafe for AgentBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
