Struct hypercore::HypercoreBuilder
source · pub struct HypercoreBuilder { /* private fields */ }
Expand description
Build a Hypercore instance with options.
Implementations§
source§impl HypercoreBuilder
impl HypercoreBuilder
sourcepub fn key_pair(self, key_pair: PartialKeypair) -> Self
pub fn key_pair(self, key_pair: PartialKeypair) -> Self
Set key pair.
sourcepub async fn build(self) -> Result<Hypercore, HypercoreError>
pub async fn build(self) -> Result<Hypercore, HypercoreError>
Build a new Hypercore.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HypercoreBuilder
impl !RefUnwindSafe for HypercoreBuilder
impl Send for HypercoreBuilder
impl !Sync for HypercoreBuilder
impl Unpin for HypercoreBuilder
impl !UnwindSafe for HypercoreBuilder
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