pub struct Flutter { /* private fields */ }
Implementations§
Source§impl Flutter
impl Flutter
pub fn new() -> Result<Self, Error>
pub fn root(&self) -> &Path
pub fn flutter(&self) -> Result<PathBuf, Error>
pub fn engine_version(&self) -> Result<String, Error>
pub fn bundle( &self, cargo: &Cargo<'_>, build: Build, dart_main: &Path, ) -> Result<(), Error>
pub fn attach(&self, cargo: &Cargo<'_>, debug_uri: &str) -> Result<(), Error>
pub fn aot( &self, cargo: &Cargo<'_>, host_engine: &Engine, target_engine: &Engine, ) -> Result<(), Error>
pub fn drive( &self, host_engine: &Engine, cargo: &Cargo<'_>, debug_uri: &str, dart_main: &Path, ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Flutter
impl RefUnwindSafe for Flutter
impl Send for Flutter
impl Sync for Flutter
impl Unpin for Flutter
impl UnwindSafe for Flutter
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