pub struct WindowsCallbackInfoSnapshot { /* private fields */ }Expand description
Owned common data copied from CF_CALLBACK_INFO before the callback returns.
Implementations§
Source§impl WindowsCallbackInfoSnapshot
impl WindowsCallbackInfoSnapshot
Sourcepub fn new(
generation: SessionGeneration,
connection_key: WindowsConnectionKey,
transfer_key: WindowsTransferKey,
request_key: WindowsRequestKey,
volume_guid_name: Option<OsString>,
volume_dos_name: Option<OsString>,
volume_serial_number: u32,
sync_root_file_id: i64,
sync_root_identity: WindowsSyncRootIdentity,
file_id: i64,
file_size: u64,
file_identity: WindowsFileIdentity,
normalized_path: Option<PathBuf>,
priority_hint: u8,
process: Option<WindowsProcessInfoSnapshot>,
) -> Result<Self>
pub fn new( generation: SessionGeneration, connection_key: WindowsConnectionKey, transfer_key: WindowsTransferKey, request_key: WindowsRequestKey, volume_guid_name: Option<OsString>, volume_dos_name: Option<OsString>, volume_serial_number: u32, sync_root_file_id: i64, sync_root_identity: WindowsSyncRootIdentity, file_id: i64, file_size: u64, file_identity: WindowsFileIdentity, normalized_path: Option<PathBuf>, priority_hint: u8, process: Option<WindowsProcessInfoSnapshot>, ) -> Result<Self>
Creates and validates a fully owned callback-info snapshot.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn generation(&self) -> SessionGeneration
pub fn generation(&self) -> SessionGeneration
Returns the durable platform session fence captured at callback ingress.
Sourcepub const fn connection_key(&self) -> WindowsConnectionKey
pub const fn connection_key(&self) -> WindowsConnectionKey
Returns the native connection key used by later CFAPI operations.
Sourcepub const fn transfer_key(&self) -> WindowsTransferKey
pub const fn transfer_key(&self) -> WindowsTransferKey
Returns the native transfer key.
Sourcepub const fn request_key(&self) -> WindowsRequestKey
pub const fn request_key(&self) -> WindowsRequestKey
Returns the native request key.
Sourcepub fn volume_guid_name(&self) -> Option<&OsStr>
pub fn volume_guid_name(&self) -> Option<&OsStr>
Returns the optional volume GUID name.
Sourcepub fn volume_dos_name(&self) -> Option<&OsStr>
pub fn volume_dos_name(&self) -> Option<&OsStr>
Returns the optional DOS volume name.
Sourcepub const fn volume_serial_number(&self) -> u32
pub const fn volume_serial_number(&self) -> u32
Returns the native volume serial number.
Sourcepub const fn sync_root_file_id(&self) -> i64
pub const fn sync_root_file_id(&self) -> i64
Returns the sync-root file identifier.
Sourcepub const fn sync_root_identity(&self) -> &WindowsSyncRootIdentity
pub const fn sync_root_identity(&self) -> &WindowsSyncRootIdentity
Returns the owned sync-root identity bytes.
Sourcepub const fn file_identity(&self) -> &WindowsFileIdentity
pub const fn file_identity(&self) -> &WindowsFileIdentity
Returns the owned stable item identity.
Sourcepub fn normalized_path(&self) -> Option<&Path>
pub fn normalized_path(&self) -> Option<&Path>
Returns the optional owned normalized path.
Sourcepub const fn priority_hint(&self) -> u8
pub const fn priority_hint(&self) -> u8
Returns the native scheduling priority hint.
Sourcepub const fn process(&self) -> Option<&WindowsProcessInfoSnapshot>
pub const fn process(&self) -> Option<&WindowsProcessInfoSnapshot>
Returns optional owned process metadata.
Trait Implementations§
Source§impl Clone for WindowsCallbackInfoSnapshot
impl Clone for WindowsCallbackInfoSnapshot
Source§fn clone(&self) -> WindowsCallbackInfoSnapshot
fn clone(&self) -> WindowsCallbackInfoSnapshot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more