pub struct FeagiWebSocketServerPullerProperties { /* private fields */ }Expand description
Configuration properties for creating a WebSocket puller server.
Implementations§
Source§impl FeagiWebSocketServerPullerProperties
impl FeagiWebSocketServerPullerProperties
Sourcepub fn new(local_bind_address: &str) -> Result<Self, FeagiNetworkError>
pub fn new(local_bind_address: &str) -> Result<Self, FeagiNetworkError>
Creates new puller properties with local bind address.
The remote endpoint defaults to the same address with ws:// scheme.
Sourcepub fn new_with_remote(
local_bind_address: &str,
remote_bind_address: &str,
) -> Result<Self, FeagiNetworkError>
pub fn new_with_remote( local_bind_address: &str, remote_bind_address: &str, ) -> Result<Self, FeagiNetworkError>
Creates new puller properties with explicit local/remote endpoints.
Trait Implementations§
Source§impl Clone for FeagiWebSocketServerPullerProperties
impl Clone for FeagiWebSocketServerPullerProperties
Source§fn clone(&self) -> FeagiWebSocketServerPullerProperties
fn clone(&self) -> FeagiWebSocketServerPullerProperties
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FeagiServerPullerProperties for FeagiWebSocketServerPullerProperties
impl FeagiServerPullerProperties for FeagiWebSocketServerPullerProperties
Source§fn as_boxed_server_puller(&self) -> Box<dyn FeagiServerPuller>
fn as_boxed_server_puller(&self) -> Box<dyn FeagiServerPuller>
Creates a new boxed puller from these properties.
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 PartialEq for FeagiWebSocketServerPullerProperties
impl PartialEq for FeagiWebSocketServerPullerProperties
Source§fn eq(&self, other: &FeagiWebSocketServerPullerProperties) -> bool
fn eq(&self, other: &FeagiWebSocketServerPullerProperties) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FeagiWebSocketServerPullerProperties
Auto Trait Implementations§
impl Freeze for FeagiWebSocketServerPullerProperties
impl RefUnwindSafe for FeagiWebSocketServerPullerProperties
impl Send for FeagiWebSocketServerPullerProperties
impl Sync for FeagiWebSocketServerPullerProperties
impl Unpin for FeagiWebSocketServerPullerProperties
impl UnsafeUnpin for FeagiWebSocketServerPullerProperties
impl UnwindSafe for FeagiWebSocketServerPullerProperties
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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