pub enum FileResponse {
LoadFileTree(Result<FileTreeData, FileError>),
OpenFile(Result<(String, String, u64), FileError>),
SaveFile(Result<(String, String, String, u64), FileError>),
}
Expand description
A type for representing a response from the collab server.
Each Response
corresponds to the Request
with the same name.
Variants§
LoadFileTree(Result<FileTreeData, FileError>)
The result of requesting the collab server to return its file tree.
OpenFile(Result<(String, String, u64), FileError>)
The result of requesting the collab server to add the client as a participant to the file with the given id.
SaveFile(Result<(String, String, String, u64), FileError>)
The result of requesting the collab server to apply a delta to a revision of the file with the given id.
Trait Implementations§
Source§impl Clone for FileResponse
impl Clone for FileResponse
Source§fn clone(&self) -> FileResponse
fn clone(&self) -> FileResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl DeBin for FileResponse
impl DeBin for FileResponse
Source§impl Debug for FileResponse
impl Debug for FileResponse
Auto Trait Implementations§
impl Freeze for FileResponse
impl RefUnwindSafe for FileResponse
impl Send for FileResponse
impl Sync for FileResponse
impl Unpin for FileResponse
impl UnwindSafe for FileResponse
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