pub struct HandshakeEntry {
pub name: &'static str,
pub build: Arc<dyn Fn(&Container) -> Arc<dyn HandshakeMiddleware> + Send + Sync>,
}Expand description
A handshake middleware, built from the connection’s container so it can depend on request-scoped things.
Fields§
§name: &'static str§build: Arc<dyn Fn(&Container) -> Arc<dyn HandshakeMiddleware> + Send + Sync>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HandshakeEntry
impl !UnwindSafe for HandshakeEntry
impl Freeze for HandshakeEntry
impl Send for HandshakeEntry
impl Sync for HandshakeEntry
impl Unpin for HandshakeEntry
impl UnsafeUnpin for HandshakeEntry
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