[−][src]Struct warp::filters::ws::Ws2
Extracted by the ws2
filter, and used to finish an upgrade.
Methods
impl Ws2
[src]
pub fn on_upgrade<F, U>(self, func: F) -> impl Reply where
F: FnOnce(WebSocket) -> U + Send + 'static,
U: Future<Item = (), Error = ()> + Send + 'static,
[src]
F: FnOnce(WebSocket) -> U + Send + 'static,
U: Future<Item = (), Error = ()> + Send + 'static,
Finish the upgrade, passing a function to handle the WebSocket
.
The passed function must return a Future
.
pub fn max_send_queue(self, max: usize) -> Self
[src]
Set the size of the internal message send queue.
pub fn max_message_size(self, max: usize) -> Self
[src]
Set the maximum message size (defaults to 64 megabytes)
pub fn max_frame_size(self, max: usize) -> Self
[src]
Set the maximum frame size (defaults to 16 megabytes)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Ws2
impl Send for Ws2
impl !Sync for Ws2
impl Unpin for Ws2
impl !UnwindSafe for Ws2
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,