pub struct TcpSession { /* private fields */ }Implementations§
Source§impl TcpSession
impl TcpSession
pub fn make( stream: TcpStream, factory: Arc<PeerFactory>, ) -> Result<TcpSessionResult, Box<dyn Error>>
pub fn maintain(&mut self) -> Result<(), Box<dyn Error>>
pub fn run( self, interval: Duration, terminate_receiver: Receiver<()>, ) -> Result<JoinHandle<()>, Box<dyn Error>>
pub async fn into_future(self) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for TcpSession
impl !RefUnwindSafe for TcpSession
impl Send for TcpSession
impl !Sync for TcpSession
impl Unpin for TcpSession
impl !UnwindSafe for TcpSession
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