pub struct Server<R> { /* private fields */ }Expand description
The ticket’s server: one rail, one session and its service subscriptions.
Implementations§
Source§impl<R: Rail> Server<R>
impl<R: Rail> Server<R>
Sourcepub fn serve<I: BufRead, O: Write + Send>(
&mut self,
input: &mut I,
output: &mut O,
) -> Result<()>
pub fn serve<I: BufRead, O: Write + Send>( &mut self, input: &mut I, output: &mut O, ) -> Result<()>
Serves requests while tap readers send unsolicited logging lines. EOF signals and joins every receiver before this returns.
§Errors
Returns the input, output, framing or subscription-teardown failure.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Server<R>where
R: Freeze,
impl<R> RefUnwindSafe for Server<R>where
R: RefUnwindSafe,
impl<R> Send for Server<R>where
R: Send,
impl<R> Sync for Server<R>where
R: Sync,
impl<R> Unpin for Server<R>where
R: Unpin,
impl<R> UnsafeUnpin for Server<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for Server<R>where
R: UnwindSafe,
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