pub struct LocalUpgradeHandler { /* private fields */ }Implementations§
Source§impl LocalUpgradeHandler
impl LocalUpgradeHandler
pub fn new<F, Fut>(handler: F) -> Selfwhere
F: FnOnce(LocalHijackedSocket) -> Fut + 'static,
Fut: Future<Output = Result<(), ProximaError>> + 'static,
pub fn invoke(self, socket: LocalHijackedSocket) -> LocalUpgradeFuture
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LocalUpgradeHandler
impl !Send for LocalUpgradeHandler
impl !Sync for LocalUpgradeHandler
impl !UnwindSafe for LocalUpgradeHandler
impl Freeze for LocalUpgradeHandler
impl Unpin for LocalUpgradeHandler
impl UnsafeUnpin for LocalUpgradeHandler
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