pub struct FeagiWebSocketClientRequester { /* private fields */ }Expand description
A WebSocket client that sends requests and receives responses.
Trait Implementations§
Source§impl FeagiClient for FeagiWebSocketClientRequester
impl FeagiClient for FeagiWebSocketClientRequester
Source§fn poll(&mut self) -> &FeagiEndpointState
fn poll(&mut self) -> &FeagiEndpointState
Advances the internal state machine and returns the current state. Read more
Source§fn request_connect(&mut self) -> Result<(), FeagiNetworkError>
fn request_connect(&mut self) -> Result<(), FeagiNetworkError>
Initiates a connection to the configured server address. Read more
Source§fn request_disconnect(&mut self) -> Result<(), FeagiNetworkError>
fn request_disconnect(&mut self) -> Result<(), FeagiNetworkError>
Initiates disconnection from the server. Read more
Source§fn confirm_error_and_close(&mut self) -> Result<(), FeagiNetworkError>
fn confirm_error_and_close(&mut self) -> Result<(), FeagiNetworkError>
Acknowledges an error and closes the connection. Read more
fn get_endpoint_target(&self) -> TransportProtocolEndpoint
Source§impl FeagiClientRequester for FeagiWebSocketClientRequester
impl FeagiClientRequester for FeagiWebSocketClientRequester
Source§fn publish_request(&mut self, request: &[u8]) -> Result<(), FeagiNetworkError>
fn publish_request(&mut self, request: &[u8]) -> Result<(), FeagiNetworkError>
Sends a request to the server. Read more
Source§fn consume_retrieved_response(&mut self) -> Result<&[u8], FeagiNetworkError>
fn consume_retrieved_response(&mut self) -> Result<&[u8], FeagiNetworkError>
Consumes and returns the retrieved response data. Read more
Source§fn as_boxed_requester_properties(
&self,
) -> Box<dyn FeagiClientRequesterProperties>
fn as_boxed_requester_properties( &self, ) -> Box<dyn FeagiClientRequesterProperties>
Creates a boxed properties object for this requester. Read more
Auto Trait Implementations§
impl Freeze for FeagiWebSocketClientRequester
impl RefUnwindSafe for FeagiWebSocketClientRequester
impl Send for FeagiWebSocketClientRequester
impl Sync for FeagiWebSocketClientRequester
impl Unpin for FeagiWebSocketClientRequester
impl UnsafeUnpin for FeagiWebSocketClientRequester
impl UnwindSafe for FeagiWebSocketClientRequester
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more