pub struct ProtocolBuilder { /* private fields */ }
Implementations§
Source§impl ProtocolBuilder
impl ProtocolBuilder
pub fn for_simulator() -> ProtocolBuilder
pub fn for_network(network_definition: &NetworkDefinition) -> ProtocolBuilder
pub fn configure_babylon( self, creator: impl FnOnce(BabylonSettings) -> BabylonSettings, ) -> ProtocolBuilder
pub fn configure_anemone( self, creator: impl FnOnce(AnemoneSettings) -> AnemoneSettings, ) -> ProtocolBuilder
pub fn configure_bottlenose( self, creator: impl FnOnce(BottlenoseSettings) -> BottlenoseSettings, ) -> ProtocolBuilder
pub fn configure_cuttlefish( self, creator: impl FnOnce(CuttlefishPart1Settings) -> CuttlefishPart1Settings, ) -> ProtocolBuilder
pub fn unbootstrapped(self) -> ProtocolExecutor
pub fn from_bootstrap_to( self, protocol_version: ProtocolVersion, ) -> ProtocolExecutor
pub fn from_bootstrap_to_latest(self) -> ProtocolExecutor
pub fn only_babylon(self) -> ProtocolExecutor
Sourcepub fn from_to(
self,
start_protocol_version: ProtocolVersion,
end_protocol_version: ProtocolVersion,
) -> ProtocolExecutor
pub fn from_to( self, start_protocol_version: ProtocolVersion, end_protocol_version: ProtocolVersion, ) -> ProtocolExecutor
The start_protocol_version
is assumed to be currently active.
If you want to also run bootstrap (i.e. enact ProtocolVersion::Babylon
), use the from_bootstrap_to
method.
Sourcepub fn from_current_to_latest(self) -> ProtocolExecutor
pub fn from_current_to_latest(self) -> ProtocolExecutor
Discovers the start point from the database
Sourcepub fn from_current_to(
self,
end_protocol_version: ProtocolVersion,
) -> ProtocolExecutor
pub fn from_current_to( self, end_protocol_version: ProtocolVersion, ) -> ProtocolExecutor
Discovers the start point from the database
Trait Implementations§
Source§impl Clone for ProtocolBuilder
impl Clone for ProtocolBuilder
Source§fn clone(&self) -> ProtocolBuilder
fn clone(&self) -> ProtocolBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProtocolBuilder
impl RefUnwindSafe for ProtocolBuilder
impl Send for ProtocolBuilder
impl Sync for ProtocolBuilder
impl Unpin for ProtocolBuilder
impl UnwindSafe for ProtocolBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more