Struct socketioxide::layer::SocketIoLayer
source · pub struct SocketIoLayer<A: Adapter = LocalAdapter> { /* private fields */ }
Expand description
A [Layer
] for SocketIoService
, acting as a middleware.
Implementations§
source§impl<A: Adapter> SocketIoLayer<A>
impl<A: Adapter> SocketIoLayer<A>
sourcepub fn with_hyper_v1(self) -> SocketIoHyperLayer<A>
Available on crate feature hyper-v1
only.
pub fn with_hyper_v1(self) -> SocketIoHyperLayer<A>
hyper-v1
only.Converts this [Layer
] into a SocketIoHyperLayer
to use with hyper v1 and its dependent frameworks.
This is only available when the hyper-v1
feature is enabled.
Trait Implementations§
source§impl<A: Adapter> Clone for SocketIoLayer<A>
impl<A: Adapter> Clone for SocketIoLayer<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for SocketIoLayer<A>
impl<A> Send for SocketIoLayer<A>
impl<A> Sync for SocketIoLayer<A>
impl<A> Unpin for SocketIoLayer<A>
impl<A> UnwindSafe for SocketIoLayer<A>
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