pub struct VaultOperatorConfig {
pub managed: ManagedWsConfig,
pub request_timeout: Duration,
/* private fields */
}Fields§
§managed: ManagedWsConfig§request_timeout: DurationImplementations§
Source§impl VaultOperatorConfig
impl VaultOperatorConfig
pub fn new( products: ProductSet, url: impl Into<String>, hello: HelloData, vault_pda: impl Into<Address32>, operator: Arc<dyn SignerLike + Send + Sync>, ) -> Self
pub fn with_managed( self, adjust: impl FnOnce(ManagedWsConfig) -> ManagedWsConfig, ) -> Self
pub const fn with_request_timeout(self, timeout: Duration) -> Self
pub fn vault_pda(&self) -> &Address32
pub fn operator_pubkey(&self) -> Address32
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VaultOperatorConfig
impl !UnwindSafe for VaultOperatorConfig
impl Forget for VaultOperatorConfig
impl Freeze for VaultOperatorConfig
impl Send for VaultOperatorConfig
impl Sync for VaultOperatorConfig
impl Unpin for VaultOperatorConfig
impl UnsafeUnpin for VaultOperatorConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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