pub trait FileSaverExt: IsA<FileSaver> + Sealed + 'static {
Show 15 methods // Provided methods fn buffer(&self) -> Option<Buffer> { ... } fn compression_type(&self) -> CompressionType { ... } fn encoding(&self) -> Option<Encoding> { ... } fn file(&self) -> Option<File> { ... } fn flags(&self) -> FileSaverFlags { ... } fn location(&self) -> Option<File> { ... } fn newline_type(&self) -> NewlineType { ... } fn set_compression_type(&self, compression_type: CompressionType) { ... } fn set_encoding(&self, encoding: Option<&Encoding>) { ... } fn set_flags(&self, flags: FileSaverFlags) { ... } fn set_newline_type(&self, newline_type: NewlineType) { ... } fn connect_compression_type_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_encoding_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_flags_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_newline_type_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all FileSaver methods.

Implementors

FileSaver

Provided Methods§

source

fn buffer(&self) -> Option<Buffer>

Returns

the Buffer to save.

source

fn compression_type(&self) -> CompressionType

Returns

the compression type.

source

fn encoding(&self) -> Option<Encoding>

Returns

the encoding.

source

fn file(&self) -> Option<File>

source

fn flags(&self) -> FileSaverFlags

Returns

the flags.

source

fn location(&self) -> Option<File>

Returns

the gio::File where to save the buffer to.

source

fn newline_type(&self) -> NewlineType

Returns

the newline type.

source

fn set_compression_type(&self, compression_type: CompressionType)

Sets the compression type. By default the compression type is taken from the File.

compression_type

the new compression type.

source

fn set_encoding(&self, encoding: Option<&Encoding>)

Sets the encoding. If encoding is None, the UTF-8 encoding will be set. By default the encoding is taken from the File.

encoding

the new encoding, or None for UTF-8.

source

fn set_flags(&self, flags: FileSaverFlags)

flags

the new flags.

source

fn set_newline_type(&self, newline_type: NewlineType)

Sets the newline type. By default the newline type is taken from the File.

newline_type

the new newline type.

source

fn connect_compression_type_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_encoding_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_flags_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_newline_type_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§