pub struct WebSocketSessionBundle {
pub command: Node<WebSocketSessionCommand>,
pub inbound: Node<WebSocketSessionInbound>,
pub lifecycle: Node<WebSocketSessionLifecycle>,
pub outbound: Node<WebSocketSessionOutbound>,
pub status: Node<WebSocketSessionStatus>,
pub errors: Node<String>,
pub attempts: Node<u32>,
}Expand description
WebSocketSessionBundle data container.
Fields§
§command: Node<WebSocketSessionCommand>command field for command.
inbound: Node<WebSocketSessionInbound>inbound field for inbound.
lifecycle: Node<WebSocketSessionLifecycle>lifecycle field for lifecycle.
outbound: Node<WebSocketSessionOutbound>outbound field for outbound.
status: Node<WebSocketSessionStatus>status field for status.
errors: Node<String>errors field for errors.
attempts: Node<u32>attempts field for attempts.
Implementations§
Source§impl WebSocketSessionBundle
impl WebSocketSessionBundle
Sourcepub fn send(&self, message: WebSocketSend)
pub fn send(&self, message: WebSocketSend)
Updates or reads send.
Sourcepub fn send_binary(&self, bytes: impl Into<Vec<u8>>)
pub fn send_binary(&self, bytes: impl Into<Vec<u8>>)
Updates or reads send_binary.
Auto Trait Implementations§
impl Freeze for WebSocketSessionBundle
impl !RefUnwindSafe for WebSocketSessionBundle
impl !Send for WebSocketSessionBundle
impl !Sync for WebSocketSessionBundle
impl Unpin for WebSocketSessionBundle
impl UnsafeUnpin for WebSocketSessionBundle
impl !UnwindSafe for WebSocketSessionBundle
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