[]Struct jni_android_sys::java::nio::channels::AsynchronousFileChannel

#[repr(transparent)]
pub struct 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]

open

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]

open

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]

truncate

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]

lock

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]

lock

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]

lock

Required features: "java-util-concurrent-Future"

pub fn lock<'env>(
    &'env self
) -> Result<Option<Local<'env, Future>>, Local<'env, Throwable>>
[src]

lock

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]

tryLock

Required features: "java-nio-channels-FileLock"

pub fn tryLock<'env>(
    &'env self
) -> Result<Option<Local<'env, FileLock>>, Local<'env, Throwable>>
[src]

tryLock

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]

read

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]

read

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]

write

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]

write

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]

getClass

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]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

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]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for AsynchronousFileChannel

impl AsRef<AsynchronousChannel> for AsynchronousFileChannel

impl AsValidJObjectAndEnv for AsynchronousFileChannel

impl Deref for AsynchronousFileChannel

type Target = Object

The resulting type after dereferencing.

impl JniType for AsynchronousFileChannel

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.