pub struct FileServerConnection { /* private fields */ }
Expand description
A connection to a collab server.
Implementations§
Source§impl FileServerConnection
impl FileServerConnection
Sourcepub fn handle_request(&self, request: FileRequest) -> FileResponse
pub fn handle_request(&self, request: FileRequest) -> FileResponse
Handles the given request
for this connection, and returns the corresponding response.
The embedder is responsible for receiving requests, calling this method to handle them, and sending back the response.
Auto Trait Implementations§
impl Freeze for FileServerConnection
impl !RefUnwindSafe for FileServerConnection
impl Send for FileServerConnection
impl !Sync for FileServerConnection
impl Unpin for FileServerConnection
impl !UnwindSafe for FileServerConnection
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