pub struct ProtocolHandlerBuilder<P>{ /* private fields */ }Expand description
Builder for protocol handlers
Implementations§
Source§impl<P> ProtocolHandlerBuilder<P>
impl<P> ProtocolHandlerBuilder<P>
pub fn new(protocol: P) -> ProtocolHandlerBuilder<P>
pub fn set_url( self, url: Arc<Url<<P as Protocol>::Context>>, ) -> ProtocolHandlerBuilder<P>
pub fn append_middleware<M>(self) -> ProtocolHandlerBuilder<P>
pub fn build(self) -> Arc<dyn ProtocolHandlerTrait>
Auto Trait Implementations§
impl<P> Freeze for ProtocolHandlerBuilder<P>where
P: Freeze,
impl<P> !RefUnwindSafe for ProtocolHandlerBuilder<P>
impl<P> Send for ProtocolHandlerBuilder<P>
impl<P> Sync for ProtocolHandlerBuilder<P>
impl<P> Unpin for ProtocolHandlerBuilder<P>where
P: Unpin,
impl<P> !UnwindSafe for ProtocolHandlerBuilder<P>
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