Struct cyfs_lib::BaseTcpListener
source · pub struct BaseTcpListener(_);
Implementations§
source§impl BaseTcpListener
impl BaseTcpListener
pub fn new(addr: SocketAddr) -> Self
pub fn bind_handler(&self, handler: BaseTcpListenerHandlerRef)
pub fn get_addr(&self) -> SocketAddr
pub fn get_listen(&self) -> String
pub async fn start(&self) -> BuckyResult<()>
pub async fn stop(&self)
Trait Implementations§
source§impl Clone for BaseTcpListener
impl Clone for BaseTcpListener
source§fn clone(&self) -> BaseTcpListener
fn clone(&self) -> BaseTcpListener
Returns a copy 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 more