Struct libseccomp::ScmpVersion
source · [−]Expand description
Represents the version information of the libseccomp library.
Fields
major: u32
The major version
minor: u32
The minor version
micro: u32
The micro version
Implementations
sourceimpl ScmpVersion
impl ScmpVersion
sourcepub fn current() -> Result<Self, SeccompError>
pub fn current() -> Result<Self, SeccompError>
Gets the version of the currently loaded libseccomp library.
This function returns ScmpVersion
that represents the currently
loaded libseccomp version.
This function corresponds to
seccomp_version
.
Errors
If this function encounters an issue while getting the version, an error will be returned.
Trait Implementations
sourceimpl Clone for ScmpVersion
impl Clone for ScmpVersion
sourcefn clone(&self) -> ScmpVersion
fn clone(&self) -> ScmpVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ScmpVersion
impl Debug for ScmpVersion
sourceimpl Display for ScmpVersion
impl Display for ScmpVersion
sourceimpl Hash for ScmpVersion
impl Hash for ScmpVersion
sourceimpl PartialEq<ScmpVersion> for ScmpVersion
impl PartialEq<ScmpVersion> for ScmpVersion
sourcefn eq(&self, other: &ScmpVersion) -> bool
fn eq(&self, other: &ScmpVersion) -> bool
impl Copy for ScmpVersion
impl Eq for ScmpVersion
impl StructuralEq for ScmpVersion
impl StructuralPartialEq for ScmpVersion
Auto Trait Implementations
impl RefUnwindSafe for ScmpVersion
impl Send for ScmpVersion
impl Sync for ScmpVersion
impl Unpin for ScmpVersion
impl UnwindSafe for ScmpVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more