pub struct Session(/* private fields */);
Expand description
A builder to create a new connection for the sync root at the specified path.
Implementations§
Source§impl Session
impl Session
Sourcepub fn block_implicit_hydration(self) -> Self
pub fn block_implicit_hydration(self) -> Self
The Session::block_implicit_hydration flag will prevent implicit placeholder hydrations from invoking SyncFilter::fetch_data. This could occur when an anti-virus is scanning file system activity on files within the sync root.
A call to the Placeholder::hydrate trait will not be blocked by this flag.
Sourcepub fn connect<P, F>(self, path: P, filter: F) -> Result<Connection<F>>
pub fn connect<P, F>(self, path: P, filter: F) -> Result<Connection<F>>
Initiates a connection to the sync root with the given SyncFilter.
Trait Implementations§
impl Copy for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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