pub struct FeagiWebSocketClientPusher { /* private fields */ }Expand description
A WebSocket client that pushes data to a server.
Trait Implementations§
Source§impl FeagiClient for FeagiWebSocketClientPusher
impl FeagiClient for FeagiWebSocketClientPusher
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 FeagiClientPusher for FeagiWebSocketClientPusher
impl FeagiClientPusher for FeagiWebSocketClientPusher
Source§fn publish_data(&mut self, data: &[u8]) -> Result<(), FeagiNetworkError>
fn publish_data(&mut self, data: &[u8]) -> Result<(), FeagiNetworkError>
Sends data to the connected server. Read more
Source§fn as_boxed_pusher_properties(&self) -> Box<dyn FeagiClientPusherProperties>
fn as_boxed_pusher_properties(&self) -> Box<dyn FeagiClientPusherProperties>
Creates a boxed properties object for this pusher. Read more
Auto Trait Implementations§
impl Freeze for FeagiWebSocketClientPusher
impl RefUnwindSafe for FeagiWebSocketClientPusher
impl Send for FeagiWebSocketClientPusher
impl Sync for FeagiWebSocketClientPusher
impl Unpin for FeagiWebSocketClientPusher
impl UnsafeUnpin for FeagiWebSocketClientPusher
impl UnwindSafe for FeagiWebSocketClientPusher
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