pub struct FeagiWebSocketClientSubscriber { /* private fields */ }Expand description
A WebSocket client that subscribes to data from a publisher server.
Trait Implementations§
Source§impl FeagiClient for FeagiWebSocketClientSubscriber
impl FeagiClient for FeagiWebSocketClientSubscriber
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 FeagiClientSubscriber for FeagiWebSocketClientSubscriber
impl FeagiClientSubscriber for FeagiWebSocketClientSubscriber
Source§fn consume_retrieved_data(&mut self) -> Result<&[u8], FeagiNetworkError>
fn consume_retrieved_data(&mut self) -> Result<&[u8], FeagiNetworkError>
Consumes and returns the retrieved subscription data. Read more
Source§fn as_boxed_subscriber_properties(
&self,
) -> Box<dyn FeagiClientSubscriberProperties>
fn as_boxed_subscriber_properties( &self, ) -> Box<dyn FeagiClientSubscriberProperties>
Creates a boxed properties object for this subscriber. Read more
Auto Trait Implementations§
impl Freeze for FeagiWebSocketClientSubscriber
impl RefUnwindSafe for FeagiWebSocketClientSubscriber
impl Send for FeagiWebSocketClientSubscriber
impl Sync for FeagiWebSocketClientSubscriber
impl Unpin for FeagiWebSocketClientSubscriber
impl UnsafeUnpin for FeagiWebSocketClientSubscriber
impl UnwindSafe for FeagiWebSocketClientSubscriber
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