Struct ockam::NodeBuilder
source · pub struct NodeBuilder { /* private fields */ }
Expand description
Start a node with a custom setup configuration
The start_node()
function wraps this type and simply calls
NodeBuilder::default()
. Varying use-cases should use the
builder API to customise the underlying node that is created.
Implementations§
source§impl NodeBuilder
impl NodeBuilder
sourcepub fn new() -> NodeBuilder
pub fn new() -> NodeBuilder
Create a node
sourcepub fn no_logging(self) -> NodeBuilder
pub fn no_logging(self) -> NodeBuilder
Disable logging on this node
Trait Implementations§
source§impl Default for NodeBuilder
impl Default for NodeBuilder
source§fn default() -> NodeBuilder
fn default() -> NodeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NodeBuilder
impl Send for NodeBuilder
impl Sync for NodeBuilder
impl Unpin for NodeBuilder
impl UnwindSafe for NodeBuilder
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