pub struct GeneratedLongDevice { /* private fields */ }Expand description
One generated long-syntax service device.
Implementations§
Source§impl GeneratedLongDevice
impl GeneratedLongDevice
Sourcepub fn new(
source: GeneratedString,
target: Option<GeneratedString>,
permissions: Option<GeneratedString>,
) -> Result<Self, GenerationError>
pub fn new( source: GeneratedString, target: Option<GeneratedString>, permissions: Option<GeneratedString>, ) -> Result<Self, GenerationError>
Creates a long device from safe resolved strings without interpreting device paths or permissions.
§Errors
Rejects an empty source and any NUL-bearing, multiline, or dollar-bearing member. NUL bytes
are normally rejected while constructing GeneratedString. Empty optional target and
permissions strings remain raw schema strings and are not assigned runtime meaning.
Sourcepub const fn source(&self) -> &GeneratedString
pub const fn source(&self) -> &GeneratedString
Returns the exact generated source through its sensitivity boundary.
Sourcepub const fn target(&self) -> Option<&GeneratedString>
pub const fn target(&self) -> Option<&GeneratedString>
Returns the optional exact generated target.
Sourcepub const fn permissions(&self) -> Option<&GeneratedString>
pub const fn permissions(&self) -> Option<&GeneratedString>
Returns the optional exact raw generated permissions string.
Trait Implementations§
Source§impl Clone for GeneratedLongDevice
impl Clone for GeneratedLongDevice
Source§fn clone(&self) -> GeneratedLongDevice
fn clone(&self) -> GeneratedLongDevice
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 GeneratedLongDevice
impl Debug for GeneratedLongDevice
impl Eq for GeneratedLongDevice
Source§impl PartialEq for GeneratedLongDevice
impl PartialEq for GeneratedLongDevice
impl StructuralPartialEq for GeneratedLongDevice
Auto Trait Implementations§
impl Freeze for GeneratedLongDevice
impl RefUnwindSafe for GeneratedLongDevice
impl Send for GeneratedLongDevice
impl Sync for GeneratedLongDevice
impl Unpin for GeneratedLongDevice
impl UnsafeUnpin for GeneratedLongDevice
impl UnwindSafe for GeneratedLongDevice
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