pub struct Builder<K: EnrKey> { /* private fields */ }
Expand description
The base builder for generating ENR records with arbitrary signing algorithms.
Implementations§
source§impl<K: EnrKey> Builder<K>
impl<K: EnrKey> Builder<K>
sourcepub fn add_value<T: Encodable>(
&mut self,
key: impl AsRef<[u8]>,
value: &T,
) -> &mut Self
pub fn add_value<T: Encodable>( &mut self, key: impl AsRef<[u8]>, value: &T, ) -> &mut Self
Adds an arbitrary key-value to the ENRBuilder
.
sourcepub fn add_value_rlp(&mut self, key: impl AsRef<[u8]>, rlp: Bytes) -> &mut Self
pub fn add_value_rlp(&mut self, key: impl AsRef<[u8]>, rlp: Bytes) -> &mut Self
Adds an arbitrary key-value where the value is raw RLP encoded bytes.
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for Builder<K>
impl<K> RefUnwindSafe for Builder<K>where
K: RefUnwindSafe,
impl<K> Send for Builder<K>
impl<K> Sync for Builder<K>
impl<K> Unpin for Builder<K>
impl<K> UnwindSafe for Builder<K>where
K: UnwindSafe,
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