pub struct RemoteJormungandrBuilder {
rest: Option<JormungandrRest>,
grpc: Option<JormungandrClient>,
logger: Option<JormungandrLogger>,
node_config: Option<NodeConfig>,
node_alias: NodeAlias,
}
Fields§
§rest: Option<JormungandrRest>
§grpc: Option<JormungandrClient>
§logger: Option<JormungandrLogger>
§node_config: Option<NodeConfig>
§node_alias: NodeAlias
Implementations§
source§impl RemoteJormungandrBuilder
impl RemoteJormungandrBuilder
pub fn new(node_alias: NodeAlias) -> Self
pub fn from_config(self, node_config_path: PathBuf) -> Self
pub fn with_rest(self, address: SocketAddr) -> Self
pub fn with_rest_client(self, client: JormungandrRest) -> Self
pub fn with_grpc<S: Into<String>>(self, address: S) -> Self
pub fn with_logger(&mut self, process: Child) -> &mut Self
pub fn with_node_config(self, node_config: PathBuf) -> Self
pub fn build(self) -> RemoteJormungandr
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteJormungandrBuilder
impl Send for RemoteJormungandrBuilder
impl !Sync for RemoteJormungandrBuilder
impl Unpin for RemoteJormungandrBuilder
impl !UnwindSafe for RemoteJormungandrBuilder
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