pub struct WindowsSyncRootRegistration { /* private fields */ }Expand description
Owned persistent sync-root registration request.
Implementations§
Source§impl WindowsSyncRootRegistration
impl WindowsSyncRootRegistration
Sourcepub fn new(
provider_name: impl Into<String>,
provider_version: impl Into<String>,
provider_id: WindowsProviderId,
sync_root_identity: WindowsSyncRootIdentity,
root_file_identity: WindowsFileIdentity,
policies: WindowsSyncRootPolicies,
options: WindowsSyncRootRegistrationOptions,
) -> Result<Self>
pub fn new( provider_name: impl Into<String>, provider_version: impl Into<String>, provider_id: WindowsProviderId, sync_root_identity: WindowsSyncRootIdentity, root_file_identity: WindowsFileIdentity, policies: WindowsSyncRootPolicies, options: WindowsSyncRootRegistrationOptions, ) -> Result<Self>
Creates a persistent registration request and validates all portable identity boundaries.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn validate_for_platform(
&self,
platform: WindowsPlatformVersion,
) -> Result<()>
pub fn validate_for_platform( &self, platform: WindowsPlatformVersion, ) -> Result<()>
Validates policies against one detected Windows platform version.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn provider_name(&self) -> &str
pub fn provider_name(&self) -> &str
Returns the user-facing provider name.
Sourcepub fn provider_version(&self) -> &str
pub fn provider_version(&self) -> &str
Returns the user-facing provider version.
Sourcepub const fn provider_id(&self) -> WindowsProviderId
pub const fn provider_id(&self) -> WindowsProviderId
Returns the stable provider GUID.
Sourcepub const fn sync_root_identity(&self) -> &WindowsSyncRootIdentity
pub const fn sync_root_identity(&self) -> &WindowsSyncRootIdentity
Returns the persistent sync-root identity.
Sourcepub const fn root_file_identity(&self) -> &WindowsFileIdentity
pub const fn root_file_identity(&self) -> &WindowsFileIdentity
Returns the required file identity used when callbacks target the root itself.
Sourcepub const fn policies(&self) -> WindowsSyncRootPolicies
pub const fn policies(&self) -> WindowsSyncRootPolicies
Returns the requested sync-root policies.
Sourcepub const fn options(&self) -> WindowsSyncRootRegistrationOptions
pub const fn options(&self) -> WindowsSyncRootRegistrationOptions
Returns persistent registration flags.
Sourcepub fn into_parts(
self,
) -> (String, String, WindowsProviderId, WindowsSyncRootIdentity, WindowsFileIdentity, WindowsSyncRootPolicies, WindowsSyncRootRegistrationOptions)
pub fn into_parts( self, ) -> (String, String, WindowsProviderId, WindowsSyncRootIdentity, WindowsFileIdentity, WindowsSyncRootPolicies, WindowsSyncRootRegistrationOptions)
Consumes the registration and returns every owned boundary value.
Trait Implementations§
Source§impl Clone for WindowsSyncRootRegistration
impl Clone for WindowsSyncRootRegistration
Source§fn clone(&self) -> WindowsSyncRootRegistration
fn clone(&self) -> WindowsSyncRootRegistration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more