pub struct MockHostBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> MockHostBuilder<S>
impl<S: State> MockHostBuilder<S>
Sourcepub fn build(self) -> MockHostwhere
S: IsComplete,
pub fn build(self) -> MockHostwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn chain_id(self, value: ChainId) -> MockHostBuilder<SetChainId<S>>where
S::ChainId: IsUnset,
pub fn chain_id(self, value: ChainId) -> MockHostBuilder<SetChainId<S>>where
S::ChainId: IsUnset,
Sourcepub fn maybe_chain_id(
self,
value: Option<ChainId>,
) -> MockHostBuilder<SetChainId<S>>where
S::ChainId: IsUnset,
pub fn maybe_chain_id(
self,
value: Option<ChainId>,
) -> MockHostBuilder<SetChainId<S>>where
S::ChainId: IsUnset,
Sourcepub fn history(self, value: Vec<MockHeader>) -> MockHostBuilder<SetHistory<S>>where
S::History: IsUnset,
pub fn history(self, value: Vec<MockHeader>) -> MockHostBuilder<SetHistory<S>>where
S::History: IsUnset,
Sourcepub fn maybe_history(
self,
value: Option<Vec<MockHeader>>,
) -> MockHostBuilder<SetHistory<S>>where
S::History: IsUnset,
pub fn maybe_history(
self,
value: Option<Vec<MockHeader>>,
) -> MockHostBuilder<SetHistory<S>>where
S::History: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for MockHostBuilder<S>
impl<S> RefUnwindSafe for MockHostBuilder<S>
impl<S> Send for MockHostBuilder<S>
impl<S> Sync for MockHostBuilder<S>
impl<S> Unpin for MockHostBuilder<S>
impl<S> UnwindSafe for MockHostBuilder<S>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request