pub struct RpcStateBuilder<MandatoryFields = (CoreStorage, BlockchainRpcClient, ZerostateId)> { /* private fields */ }Implementations§
Source§impl<T2, T3> RpcStateBuilder<((), T2, T3)>
impl<T2, T3> RpcStateBuilder<((), T2, T3)>
pub fn with_storage( self, storage: CoreStorage, ) -> RpcStateBuilder<(CoreStorage, T2, T3)>
Source§impl<T1, T3> RpcStateBuilder<(T1, (), T3)>
impl<T1, T3> RpcStateBuilder<(T1, (), T3)>
pub fn with_blockchain_rpc_client( self, client: BlockchainRpcClient, ) -> RpcStateBuilder<(T1, BlockchainRpcClient, T3)>
Source§impl<T1, T2> RpcStateBuilder<(T1, T2, ())>
impl<T1, T2> RpcStateBuilder<(T1, T2, ())>
pub fn with_zerostate_id( self, zerostate_id: ZerostateId, ) -> RpcStateBuilder<(T1, T2, ZerostateId)>
Source§impl<T1, T2, T3> RpcStateBuilder<(T1, T2, T3)>
impl<T1, T2, T3> RpcStateBuilder<(T1, T2, T3)>
pub fn with_config(self, config: RpcConfig) -> RpcStateBuilder<(T1, T2, T3)>
Auto Trait Implementations§
impl<MandatoryFields> Freeze for RpcStateBuilder<MandatoryFields>where
MandatoryFields: Freeze,
impl<MandatoryFields> RefUnwindSafe for RpcStateBuilder<MandatoryFields>where
MandatoryFields: RefUnwindSafe,
impl<MandatoryFields> Send for RpcStateBuilder<MandatoryFields>where
MandatoryFields: Send,
impl<MandatoryFields> Sync for RpcStateBuilder<MandatoryFields>where
MandatoryFields: Sync,
impl<MandatoryFields> Unpin for RpcStateBuilder<MandatoryFields>where
MandatoryFields: Unpin,
impl<MandatoryFields> UnwindSafe for RpcStateBuilder<MandatoryFields>where
MandatoryFields: UnwindSafe,
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