pub struct WebSocketConfig<B>where
B: BroadcastTypeTrait,{ /* private fields */ }
Implementations§
Source§impl<B> WebSocketConfig<B>where
B: BroadcastTypeTrait,
impl<B> WebSocketConfig<B>where
B: BroadcastTypeTrait,
pub fn new() -> WebSocketConfig<B>
pub fn set_buffer_size(self, buffer_size: usize) -> WebSocketConfig<B>
pub fn set_capacity(self, capacity: usize) -> WebSocketConfig<B>
pub fn set_context(self, context: Context) -> WebSocketConfig<B>
pub fn set_broadcast_type( self, broadcast_type: BroadcastType<B>, ) -> WebSocketConfig<B>
pub fn set_request_hook<F, Fut>(self, hook: F) -> WebSocketConfig<B>
pub fn set_sended_hook<F, Fut>(self, hook: F) -> WebSocketConfig<B>
pub fn set_closed_hook<F, Fut>(self, hook: F) -> WebSocketConfig<B>
pub fn get_context(&self) -> &Context
pub fn get_buffer_size(&self) -> usize
pub fn get_capacity(&self) -> usize
pub fn get_broadcast_type(&self) -> &BroadcastType<B>
pub fn get_request_hook( &self, ) -> &Arc<dyn FnPinBoxSendSync<Output = Pin<Box<dyn Future<Output = ()> + Send>>>>
pub fn get_sended_hook( &self, ) -> &Arc<dyn FnPinBoxSendSync<Output = Pin<Box<dyn Future<Output = ()> + Send>>>>
pub fn get_closed_hook( &self, ) -> &Arc<dyn FnPinBoxSendSync<Output = Pin<Box<dyn Future<Output = ()> + Send>>>>
Trait Implementations§
Source§impl<B> Clone for WebSocketConfig<B>where
B: Clone + BroadcastTypeTrait,
impl<B> Clone for WebSocketConfig<B>where
B: Clone + BroadcastTypeTrait,
Source§fn clone(&self) -> WebSocketConfig<B>
fn clone(&self) -> WebSocketConfig<B>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<B> Default for WebSocketConfig<B>where
B: BroadcastTypeTrait,
impl<B> Default for WebSocketConfig<B>where
B: BroadcastTypeTrait,
Source§fn default() -> WebSocketConfig<B>
fn default() -> WebSocketConfig<B>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<B> Freeze for WebSocketConfig<B>where
B: Freeze,
impl<B> !RefUnwindSafe for WebSocketConfig<B>
impl<B> Send for WebSocketConfig<B>where
B: Send,
impl<B> Sync for WebSocketConfig<B>where
B: Sync,
impl<B> Unpin for WebSocketConfig<B>where
B: Unpin,
impl<B> !UnwindSafe for WebSocketConfig<B>
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