Struct cloud_filter::root::Session
source · 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 [block_implicit_hydration][crate::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, T>(self, path: P, filter: T) -> Result<Connection<Arc<T>>>
pub fn connect<P, T>(self, path: P, filter: T) -> Result<Connection<Arc<T>>>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)