pub struct FeagiWebSocketServerPuller { /* private fields */ }Expand description
A WebSocket server that receives pushed data from clients.
Trait Implementations§
Source§impl FeagiServer for FeagiWebSocketServerPuller
impl FeagiServer for FeagiWebSocketServerPuller
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_start(&mut self) -> Result<(), FeagiNetworkError>
fn request_start(&mut self) -> Result<(), FeagiNetworkError>
Initiates binding to the configured address and starts listening. Read more
Source§fn request_stop(&mut self) -> Result<(), FeagiNetworkError>
fn request_stop(&mut self) -> Result<(), FeagiNetworkError>
Initiates stopping the server and unbinding from the address. 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 server. Read more
Source§fn get_bind_point(&self) -> TransportProtocolEndpoint
fn get_bind_point(&self) -> TransportProtocolEndpoint
Gets the local bind point
Source§fn get_agent_endpoint(&self) -> TransportProtocolEndpoint
fn get_agent_endpoint(&self) -> TransportProtocolEndpoint
Gets the bind point that is given to agents (the remote bind point)
fn get_protocol(&self) -> TransportProtocolImplementation
Source§impl FeagiServerPuller for FeagiWebSocketServerPuller
impl FeagiServerPuller for FeagiWebSocketServerPuller
Source§fn consume_retrieved_data(&mut self) -> Result<&[u8], FeagiNetworkError>
fn consume_retrieved_data(&mut self) -> Result<&[u8], FeagiNetworkError>
Consumes and returns the retrieved data from clients. Read more
Source§fn as_boxed_puller_properties(&self) -> Box<dyn FeagiServerPullerProperties>
fn as_boxed_puller_properties(&self) -> Box<dyn FeagiServerPullerProperties>
Creates a boxed properties object for this puller. Read more
Auto Trait Implementations§
impl Freeze for FeagiWebSocketServerPuller
impl !RefUnwindSafe for FeagiWebSocketServerPuller
impl Send for FeagiWebSocketServerPuller
impl Sync for FeagiWebSocketServerPuller
impl Unpin for FeagiWebSocketServerPuller
impl UnsafeUnpin for FeagiWebSocketServerPuller
impl !UnwindSafe for FeagiWebSocketServerPuller
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