Struct jormungandr_automation::jormungandr::grpc::server::MockBuilder
source · pub struct MockBuilder {
mock_port: Option<u16>,
genesis_block: Option<Block>,
protocol_version: ProtocolVersion,
invalid_block0_hash: bool,
}
Fields§
§mock_port: Option<u16>
§genesis_block: Option<Block>
§protocol_version: ProtocolVersion
§invalid_block0_hash: bool
Implementations§
source§impl MockBuilder
impl MockBuilder
pub fn with_port(&mut self, mock_port: u16) -> &mut Self
pub fn with_genesis_block(&mut self, block: Block) -> &mut Self
pub fn with_protocol_version( &mut self, protocol_version: ProtocolVersion ) -> &mut Self
pub fn with_invalid_block0_hash( &mut self, invalid_block0_hash: bool ) -> &mut Self
pub fn build_data(&self) -> Arc<RwLock<MockServerData>>
pub fn build(&self) -> MockController
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for MockBuilder
impl Send for MockBuilder
impl Sync for MockBuilder
impl Unpin for MockBuilder
impl UnwindSafe for MockBuilder
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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