pub struct ResourceBatch { /* private fields */ }Expand description
Files, processes, and services to register in one native call.
Implementations§
Source§impl ResourceBatch
impl ResourceBatch
Sourcepub fn file(self, file: impl Into<PathBuf>) -> Self
pub fn file(self, file: impl Into<PathBuf>) -> Self
Adds a file path and returns the collection for chaining.
Directories are not supported. Relative paths are made absolute at registration time; other missing paths are retained without canonicalizing or resolving symlinks.
Sourcepub fn process(self, process: ProcessIdentity) -> Self
pub fn process(self, process: ProcessIdentity) -> Self
Adds a process and returns the collection for chaining.
Sourcepub fn service(self, service: impl Into<OsString>) -> Self
pub fn service(self, service: impl Into<OsString>) -> Self
Adds a service short name and returns the collection for chaining.
Sourcepub fn add_process(&mut self, process: ProcessIdentity) -> &mut Self
pub fn add_process(&mut self, process: ProcessIdentity) -> &mut Self
Adds a process in place.
Sourcepub fn add_service(&mut self, service: impl Into<OsString>) -> &mut Self
pub fn add_service(&mut self, service: impl Into<OsString>) -> &mut Self
Adds a service short name in place.
Trait Implementations§
Source§impl Clone for ResourceBatch
impl Clone for ResourceBatch
Source§fn clone(&self) -> ResourceBatch
fn clone(&self) -> ResourceBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceBatch
impl Debug for ResourceBatch
Source§impl Default for ResourceBatch
impl Default for ResourceBatch
Source§fn default() -> ResourceBatch
fn default() -> ResourceBatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResourceBatch
impl RefUnwindSafe for ResourceBatch
impl Send for ResourceBatch
impl Sync for ResourceBatch
impl Unpin for ResourceBatch
impl UnsafeUnpin for ResourceBatch
impl UnwindSafe for ResourceBatch
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