[−]Struct jni_android_sys::java::nio::channels::AsynchronousFileChannel
public class AsynchronousFileChannel
Required feature: "java-nio-channels-AsynchronousFileChannel"
Methods
impl AsynchronousFileChannel
pub fn open_Path_Set_ExecutorService_FileAttribute_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Set>>,
arg2: impl Into<Option<&'env ExecutorService>>,
arg3: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, AsynchronousFileChannel>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env Set>>,
arg2: impl Into<Option<&'env ExecutorService>>,
arg3: impl Into<Option<&'env ObjectArray<FileAttribute, Throwable>>>
) -> Result<Option<Local<'env, AsynchronousFileChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-AsynchronousFileChannel", "java-nio-file-Path", "java-nio-file-attribute-FileAttribute", "java-util-Set", "java-util-concurrent-ExecutorService"
pub fn open_Path_OpenOption_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, AsynchronousFileChannel>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Path>>,
arg1: impl Into<Option<&'env ObjectArray<OpenOption, Throwable>>>
) -> Result<Option<Local<'env, AsynchronousFileChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-AsynchronousFileChannel", "java-nio-file-OpenOption", "java-nio-file-Path"
pub fn size<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>
[src]
pub fn truncate<'env>(
&'env self,
arg0: i64
) -> Result<Option<Local<'env, AsynchronousFileChannel>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<Option<Local<'env, AsynchronousFileChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-AsynchronousFileChannel"
pub fn force<'env>(&'env self, arg0: bool) -> Result<(), Local<'env, Throwable>>
[src]
pub fn lock_long_long_boolean_Object_CompletionHandler<'env>(
&'env self,
arg0: i64,
arg1: i64,
arg2: bool,
arg3: impl Into<Option<&'env Object>>,
arg4: impl Into<Option<&'env CompletionHandler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i64,
arg2: bool,
arg3: impl Into<Option<&'env Object>>,
arg4: impl Into<Option<&'env CompletionHandler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-Object", "java-nio-channels-CompletionHandler"
pub fn lock_Object_CompletionHandler<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>,
arg1: impl Into<Option<&'env CompletionHandler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>,
arg1: impl Into<Option<&'env CompletionHandler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-Object", "java-nio-channels-CompletionHandler"
pub fn lock_long_long_boolean<'env>(
&'env self,
arg0: i64,
arg1: i64,
arg2: bool
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i64,
arg2: bool
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
Required features: "java-util-concurrent-Future"
pub fn lock<'env>(
&'env self
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
Required features: "java-util-concurrent-Future"
pub fn tryLock_long_long_boolean<'env>(
&'env self,
arg0: i64,
arg1: i64,
arg2: bool
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i64,
arg2: bool
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
Required features: "java-nio-channels-FileLock"
pub fn tryLock<'env>(
&'env self
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
Required features: "java-nio-channels-FileLock"
pub fn read_ByteBuffer_long_Object_CompletionHandler<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64,
arg2: impl Into<Option<&'env Object>>,
arg3: impl Into<Option<&'env CompletionHandler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64,
arg2: impl Into<Option<&'env Object>>,
arg3: impl Into<Option<&'env CompletionHandler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-Object", "java-nio-ByteBuffer", "java-nio-channels-CompletionHandler"
pub fn read_ByteBuffer_long<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer", "java-util-concurrent-Future"
pub fn write_ByteBuffer_long_Object_CompletionHandler<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64,
arg2: impl Into<Option<&'env Object>>,
arg3: impl Into<Option<&'env CompletionHandler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64,
arg2: impl Into<Option<&'env Object>>,
arg3: impl Into<Option<&'env CompletionHandler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-Object", "java-nio-ByteBuffer", "java-nio-channels-CompletionHandler"
pub fn write_ByteBuffer_long<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i64
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer", "java-util-concurrent-Future"
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for AsynchronousFileChannel
impl AsRef<AsynchronousChannel> for AsynchronousFileChannel
fn as_ref(&self) -> &AsynchronousChannel
impl AsValidJObjectAndEnv for AsynchronousFileChannel
impl Deref for AsynchronousFileChannel
impl JniType for AsynchronousFileChannel
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for AsynchronousFileChannel
impl !Send for AsynchronousFileChannel
impl !Sync for AsynchronousFileChannel
impl Unpin for AsynchronousFileChannel
impl UnwindSafe for AsynchronousFileChannel
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,