Struct vls_protocol_signer::handler::InitHandler
source · pub struct InitHandler { /* private fields */ }Expand description
Initial protocol handler, for negotiating the protocol version
Implementations§
source§impl InitHandler
impl InitHandler
sourcepub fn new(
id: u64,
node: Arc<Node>,
approver: Arc<dyn Approve>,
max_protocol_version: u32
) -> InitHandler
pub fn new( id: u64, node: Arc<Node>, approver: Arc<dyn Approve>, max_protocol_version: u32 ) -> InitHandler
Create a new InitHandler
sourcepub fn into_root_handler(self) -> RootHandler
pub fn into_root_handler(self) -> RootHandler
Convert to RootHandler.
Panics if initial negotiation is not complete - see InitHandler::handle.
Trait Implementations§
source§impl Clone for InitHandler
impl Clone for InitHandler
source§fn clone(&self) -> InitHandler
fn clone(&self) -> InitHandler
Returns a copy 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 InitHandler
impl !RefUnwindSafe for InitHandler
impl Send for InitHandler
impl Sync for InitHandler
impl Unpin for InitHandler
impl !UnwindSafe for InitHandler
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> Downcast for T
impl<T> Downcast 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