pub enum ServerOrBound {
Server(RealizedServerPort),
Bound(BoundConnection),
}
Variants§
Server(RealizedServerPort)
Bound(BoundConnection)
Implementations§
source§impl ServerOrBound
impl ServerOrBound
pub async fn connect<T: Connected>(self) -> T
pub fn connect_local_blocking<T: Connected>(self) -> T
pub async fn accept_tcp(&mut self) -> TcpStream
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerOrBound
impl RefUnwindSafe for ServerOrBound
impl Send for ServerOrBound
impl Sync for ServerOrBound
impl Unpin for ServerOrBound
impl UnwindSafe for ServerOrBound
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