Struct cyfs_lib::BaseTcpListener
source · [−]pub struct BaseTcpListener(_);Implementations
sourceimpl 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
sourceimpl Clone for BaseTcpListener
impl Clone for BaseTcpListener
sourcefn clone(&self) -> BaseTcpListener
fn clone(&self) -> BaseTcpListener
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for BaseTcpListener
impl Send for BaseTcpListener
impl Sync for BaseTcpListener
impl Unpin for BaseTcpListener
impl UnwindSafe for BaseTcpListener
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more