pub struct S7Server { /* private fields */ }Expand description
TCP listener that accepts connections and runs the full S7 pipeline per connection.
Implementations§
Source§impl S7Server
impl S7Server
Sourcepub async fn bind(config: ServerConfig) -> Result<Self>
pub async fn bind(config: ServerConfig) -> Result<Self>
Bind a TCP listener at config.bind_addr.
Sourcepub fn local_addr(&self) -> Result<SocketAddr>
pub fn local_addr(&self) -> Result<SocketAddr>
Return the local address the server is listening on.
Auto Trait Implementations§
impl !Freeze for S7Server
impl RefUnwindSafe for S7Server
impl Send for S7Server
impl Sync for S7Server
impl Unpin for S7Server
impl UnsafeUnpin for S7Server
impl UnwindSafe for S7Server
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