pub struct FeagiWebSocketServerRouterProperties { /* private fields */ }Expand description
Configuration properties for creating a WebSocket router server.
Implementations§
Source§impl FeagiWebSocketServerRouterProperties
impl FeagiWebSocketServerRouterProperties
Sourcepub fn new(local_bind_address: &str) -> Result<Self, FeagiNetworkError>
pub fn new(local_bind_address: &str) -> Result<Self, FeagiNetworkError>
Creates new router 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 router properties with explicit local/remote endpoints.
Trait Implementations§
Source§impl Clone for FeagiWebSocketServerRouterProperties
impl Clone for FeagiWebSocketServerRouterProperties
Source§fn clone(&self) -> FeagiWebSocketServerRouterProperties
fn clone(&self) -> FeagiWebSocketServerRouterProperties
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 FeagiServerRouterProperties for FeagiWebSocketServerRouterProperties
impl FeagiServerRouterProperties for FeagiWebSocketServerRouterProperties
Source§fn as_boxed_server_router(&self) -> Box<dyn FeagiServerRouter>
fn as_boxed_server_router(&self) -> Box<dyn FeagiServerRouter>
Creates a new boxed router 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 FeagiWebSocketServerRouterProperties
impl PartialEq for FeagiWebSocketServerRouterProperties
Source§fn eq(&self, other: &FeagiWebSocketServerRouterProperties) -> bool
fn eq(&self, other: &FeagiWebSocketServerRouterProperties) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FeagiWebSocketServerRouterProperties
Auto Trait Implementations§
impl Freeze for FeagiWebSocketServerRouterProperties
impl RefUnwindSafe for FeagiWebSocketServerRouterProperties
impl Send for FeagiWebSocketServerRouterProperties
impl Sync for FeagiWebSocketServerRouterProperties
impl Unpin for FeagiWebSocketServerRouterProperties
impl UnsafeUnpin for FeagiWebSocketServerRouterProperties
impl UnwindSafe for FeagiWebSocketServerRouterProperties
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