pub struct FileServer { /* private fields */ }
Implementations§
Source§impl FileServer
impl FileServer
Sourcepub fn new(roots: FileSystemRoots) -> FileServer
pub fn new(roots: FileSystemRoots) -> FileServer
Creates a new collab server rooted at the given path.
Sourcepub fn connect(
&mut self,
notification_sender: Box<dyn NotificationSender>,
) -> FileServerConnection
pub fn connect( &mut self, notification_sender: Box<dyn NotificationSender>, ) -> FileServerConnection
Creates a new connection to this collab server, and returns a handle for the connection.
The given notification_sender
is called whenever the server wants to send a notification
for this connection. The embedder is responsible for sending the notification.
Auto Trait Implementations§
impl Freeze for FileServer
impl RefUnwindSafe for FileServer
impl Send for FileServer
impl Sync for FileServer
impl Unpin for FileServer
impl UnwindSafe for FileServer
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