pub enum Signing {
Required,
Optional,
NotSupported,
}Expand description
Indicates if a builder requires signing for bundles using X-Flashbots-Signature.
All builder besides Flashbots have signing as optional or not supported. If provided, the builder may give better priority to signed bundles.
Variants§
Required
Bundle gets rejected if not signed.
Optional
Signing is optional and may give better priority.
NotSupported
Builder does not support signing.
Implementations§
Source§impl Signing
impl Signing
Sourcepub const fn is_required(&self) -> bool
pub const fn is_required(&self) -> bool
Returns true if the builder requires signing for bundles.
Sourcepub fn is_optional(&self) -> bool
pub fn is_optional(&self) -> bool
Returns true if the builder supports signing, but it is optional.
Sourcepub fn is_not_supported(&self) -> bool
pub fn is_not_supported(&self) -> bool
Returns true if the builder does not support signing.
Trait Implementations§
impl Eq for Signing
impl StructuralPartialEq for Signing
Auto Trait Implementations§
impl Freeze for Signing
impl RefUnwindSafe for Signing
impl Send for Signing
impl Sync for Signing
impl Unpin for Signing
impl UnsafeUnpin for Signing
impl UnwindSafe for Signing
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