pub struct WebSocketConnection {
pub alive: bool,
/* private fields */
}Fields§
§alive: boolImplementations§
Source§impl WebSocketConnection
impl WebSocketConnection
pub fn new( addr: &str, versioning_prefix: Option<&str>, label: impl Into<String>, ) -> Result<Self>
Sourcepub fn offline(label: impl Into<String>) -> Self
pub fn offline(label: impl Into<String>) -> Self
Creates an explicitly disconnected transport. Native debug cartridges use this when no design-server address was supplied instead of probing a magical localhost endpoint forever.
pub fn send_agent_message(&mut self, message: &AgentMessage) -> Result<()>
pub fn send_component_update( &mut self, component: &ComponentDefinition, ) -> Result<()>
pub fn send_llm_request(&mut self, llm_request: LLMRequest) -> Result<()>
pub fn send_file_to_static_dir( &mut self, name: &str, data: Vec<u8>, ) -> Result<()>
pub fn send_dev_client_response( &mut self, response: DevClientResponse, ) -> Result<()>
pub fn send_userland_source_update_request( &mut self, request: UserlandSourceUpdateRequest, ) -> Result<()>
pub fn shutdown_permanently(&mut self)
Auto Trait Implementations§
impl !Sync for WebSocketConnection
impl Freeze for WebSocketConnection
impl RefUnwindSafe for WebSocketConnection
impl Send for WebSocketConnection
impl Unpin for WebSocketConnection
impl UnsafeUnpin for WebSocketConnection
impl UnwindSafe for WebSocketConnection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.