pub struct Server {
pub root_path: String,
pub debug_info_rpms: Vec<Arc<DebugInfoRPM>>,
pub build_ids: HashMap<BuildId, Arc<DebugInfoRPM>>,
pub total_byte_size: u64,
}
Fields§
§root_path: String
§debug_info_rpms: Vec<Arc<DebugInfoRPM>>
§build_ids: HashMap<BuildId, Arc<DebugInfoRPM>>
§total_byte_size: u64
Implementations§
Source§impl Server
impl Server
pub fn new(root_folder: &str) -> Self
pub fn walk(&mut self)
pub fn get_binary_rpm_for_build_id( &self, build_id: &BuildId, ) -> Option<(String, String)>
pub fn read_rpm_file(&self, rpm_file: &str, file: &str) -> Option<Vec<u8>>
pub fn read_rpm_file_section( &self, rpm_file: &str, file: &str, section: &str, ) -> Option<Vec<u8>>
pub fn parse_build_id(&self, id: &str) -> Result<BuildId>
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more