pub struct AdbVersion {
pub major: u32,
pub minor: u32,
pub revision: u32,
}Expand description
Represents the ADB server version.
Fields§
§major: u32Major version number.
minor: u32Minor version number.
revision: u32Revision number.
Implementations§
Source§impl AdbVersion
impl AdbVersion
Sourcepub fn new(minor: u32, revision: u32) -> Self
pub fn new(minor: u32, revision: u32) -> Self
Instantiates a new AdbVersion.
Trait Implementations§
Source§impl Debug for AdbVersion
impl Debug for AdbVersion
Source§impl Display for AdbVersion
impl Display for AdbVersion
Auto Trait Implementations§
impl Freeze for AdbVersion
impl RefUnwindSafe for AdbVersion
impl Send for AdbVersion
impl Sync for AdbVersion
impl Unpin for AdbVersion
impl UnwindSafe for AdbVersion
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