#[repr(C)]
pub struct VSIFilesystemPluginCallbacksStruct {
Show 22 fields pub pUserData: *mut c_void, pub stat: VSIFilesystemPluginStatCallback, pub unlink: VSIFilesystemPluginUnlinkCallback, pub rename: VSIFilesystemPluginRenameCallback, pub mkdir: VSIFilesystemPluginMkdirCallback, pub rmdir: VSIFilesystemPluginRmdirCallback, pub read_dir: VSIFilesystemPluginReadDirCallback, pub open: VSIFilesystemPluginOpenCallback, pub tell: VSIFilesystemPluginTellCallback, pub seek: VSIFilesystemPluginSeekCallback, pub read: VSIFilesystemPluginReadCallback, pub read_multi_range: VSIFilesystemPluginReadMultiRangeCallback, pub get_range_status: VSIFilesystemPluginGetRangeStatusCallback, pub eof: VSIFilesystemPluginEofCallback, pub write: VSIFilesystemPluginWriteCallback, pub flush: VSIFilesystemPluginFlushCallback, pub truncate: VSIFilesystemPluginTruncateCallback, pub close: VSIFilesystemPluginCloseCallback, pub nBufferSize: usize, pub nCacheSize: usize, pub sibling_files: VSIFilesystemPluginSiblingFilesCallback, pub advise_read: VSIFilesystemPluginAdviseReadCallback,
}
Expand description

struct containing callbacks to used by the handler. (rw), (r), (w) or () at the end indicate whether the given callback is mandatory for reading and or writing handlers. A (?) indicates that the callback might be mandatory for certain drivers only. @since GDAL 3.0

Fields§

§pUserData: *mut c_void

Optional opaque pointer passed back to filemanager callbacks (e.g. open, stat, rmdir)

§stat: VSIFilesystemPluginStatCallback

< stat handle by name (rw)

§unlink: VSIFilesystemPluginUnlinkCallback

< unlink handle by name ()

§rename: VSIFilesystemPluginRenameCallback

< rename handle ()

§mkdir: VSIFilesystemPluginMkdirCallback

< make directory ()

§rmdir: VSIFilesystemPluginRmdirCallback

< remove directory ()

§read_dir: VSIFilesystemPluginReadDirCallback

< list directory content (r?)

§open: VSIFilesystemPluginOpenCallback

< open handle by name (rw)

§tell: VSIFilesystemPluginTellCallback

< get current position of handle (rw)

§seek: VSIFilesystemPluginSeekCallback

< set current position of handle (rw)

§read: VSIFilesystemPluginReadCallback

< read from current position (r)

§read_multi_range: VSIFilesystemPluginReadMultiRangeCallback

< read multiple blocks ()

§get_range_status: VSIFilesystemPluginGetRangeStatusCallback

< get range status ()

§eof: VSIFilesystemPluginEofCallback

< has end of file been reached (r?)

§write: VSIFilesystemPluginWriteCallback

< write bytes to current position (w)

§flush: VSIFilesystemPluginFlushCallback

< sync bytes (w)

§truncate: VSIFilesystemPluginTruncateCallback

< truncate handle (w?)

§close: VSIFilesystemPluginCloseCallback

< close handle (rw)

§nBufferSize: usize

< buffer small reads (makes handler read only)

§nCacheSize: usize

< max mem to use per file when buffering

§sibling_files: VSIFilesystemPluginSiblingFilesCallback

< list related files

§advise_read: VSIFilesystemPluginAdviseReadCallback

< AdviseRead()

Trait Implementations§

source§

impl Clone for VSIFilesystemPluginCallbacksStruct

source§

fn clone(&self) -> VSIFilesystemPluginCallbacksStruct

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VSIFilesystemPluginCallbacksStruct

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for VSIFilesystemPluginCallbacksStruct

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.