pub struct BoundWebSocket { /* private fields */ }Expand description
The configured WebSocket address, bound and not yet accepting.
Implementations§
Source§impl BoundWebSocket
impl BoundWebSocket
Sourcepub fn bind(config: &WebSocketConfig) -> Result<Self, ServerError>
pub fn bind(config: &WebSocketConfig) -> Result<Self, ServerError>
Binds the configured WebSocket listen address. No thread starts and no supervisor is needed.
§Errors
Returns ServerError::ListenerBind when the configured address cannot
bind, and ServerError::ListenerAccept when the bound address cannot
be read or the build target cannot represent the pinned liminal frame
bound.
Sourcepub const fn local_addr(&self) -> SocketAddr
pub const fn local_addr(&self) -> SocketAddr
The bound address, an ephemeral port resolved.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoundWebSocket
impl RefUnwindSafe for BoundWebSocket
impl Send for BoundWebSocket
impl Sync for BoundWebSocket
impl Unpin for BoundWebSocket
impl UnsafeUnpin for BoundWebSocket
impl UnwindSafe for BoundWebSocket
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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