pub struct NodeHandlerWrapperBuilder<TProtoHandler>where
TProtoHandler: ProtocolsHandler,{ /* private fields */ }
Expand description
Prototype for a NodeHandlerWrapper
.
Implementations
sourceimpl<TProtoHandler> NodeHandlerWrapperBuilder<TProtoHandler>where
TProtoHandler: ProtocolsHandler,
impl<TProtoHandler> NodeHandlerWrapperBuilder<TProtoHandler>where
TProtoHandler: ProtocolsHandler,
sourcepub fn with_in_negotiation_timeout(self, timeout: Duration) -> Self
pub fn with_in_negotiation_timeout(self, timeout: Duration) -> Self
Sets the timeout to use when negotiating a protocol on an ingoing substream.
sourcepub fn with_out_negotiation_timeout(self, timeout: Duration) -> Self
pub fn with_out_negotiation_timeout(self, timeout: Duration) -> Self
Sets the timeout to use when negotiating a protocol on an outgoing substream.
sourcepub fn build(self) -> NodeHandlerWrapper<TProtoHandler>
pub fn build(self) -> NodeHandlerWrapper<TProtoHandler>
Builds the NodeHandlerWrapper
.
Auto Trait Implementations
impl<TProtoHandler> RefUnwindSafe for NodeHandlerWrapperBuilder<TProtoHandler>where
TProtoHandler: RefUnwindSafe,
impl<TProtoHandler> Send for NodeHandlerWrapperBuilder<TProtoHandler>where
TProtoHandler: Send,
impl<TProtoHandler> Sync for NodeHandlerWrapperBuilder<TProtoHandler>where
TProtoHandler: Sync,
impl<TProtoHandler> Unpin for NodeHandlerWrapperBuilder<TProtoHandler>where
TProtoHandler: Unpin,
impl<TProtoHandler> UnwindSafe for NodeHandlerWrapperBuilder<TProtoHandler>where
TProtoHandler: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more