pub struct HandlerBuilder<TS>where
TS: TransportSpec,{ /* private fields */ }Expand description
Builder for protocol registries assembled from neutral protocol entries.
Implementations§
Source§impl<TS> ProtocolRegistryBuilder<TS>where
TS: TransportSpec,
impl<TS> ProtocolRegistryBuilder<TS>where
TS: TransportSpec,
pub fn new() -> ProtocolRegistryBuilder<TS>
pub fn protocol<P>( self, builder: ProtocolEntryBuilder<P, TS>, ) -> ProtocolRegistryBuilder<TS>
pub fn build(self) -> ProtocolEntryRegistry<TS>
Auto Trait Implementations§
impl<TS> !RefUnwindSafe for ProtocolRegistryBuilder<TS>
impl<TS> !UnwindSafe for ProtocolRegistryBuilder<TS>
impl<TS> Freeze for ProtocolRegistryBuilder<TS>
impl<TS> Send for ProtocolRegistryBuilder<TS>
impl<TS> Sync for ProtocolRegistryBuilder<TS>
impl<TS> Unpin for ProtocolRegistryBuilder<TS>
impl<TS> UnsafeUnpin for ProtocolRegistryBuilder<TS>
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