pub struct ScmpVersion {
pub major: u32,
pub minor: u32,
pub micro: u32,
}
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§
Source§impl 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§
Source§impl Clone for ScmpVersion
impl Clone for ScmpVersion
Source§fn clone(&self) -> ScmpVersion
fn clone(&self) -> ScmpVersion
Returns a copy of the value. Read more
1.0.0 · 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 ScmpVersion
impl Debug for ScmpVersion
Source§impl Display for ScmpVersion
impl Display for ScmpVersion
Source§impl Hash for ScmpVersion
impl Hash for ScmpVersion
Source§impl PartialEq for ScmpVersion
impl PartialEq for ScmpVersion
impl Copy for ScmpVersion
impl Eq for ScmpVersion
impl StructuralPartialEq for ScmpVersion
Auto Trait Implementations§
impl Freeze for ScmpVersion
impl RefUnwindSafe for ScmpVersion
impl Send for ScmpVersion
impl Sync for ScmpVersion
impl Unpin for ScmpVersion
impl UnwindSafe for ScmpVersion
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